blob: 2ef4026d93324ca18afb2796a3c04b63b4a234be [file] [log] [blame]
Chris Lattnerecd9bfb2006-09-13 03:21:27 +00001; RUN: llvm-as < %s | llc -march=x86 | grep js
2int %f(int %X) {
3entry:
4 %tmp1 = add int %X, 1 ; <int> [#uses=1]
5 %tmp = setlt int %tmp1, 0 ; <bool> [#uses=1]
6 br bool %tmp, label %cond_true, label %cond_next
7
8cond_true: ; preds = %entry
9 %tmp2 = tail call int (...)* %bar( ) ; <int> [#uses=0]
10 br label %cond_next
11
12cond_next: ; preds = %entry, %cond_true
13 %tmp3 = tail call int (...)* %baz( ) ; <int> [#uses=0]
14 ret int undef
15}
16
17declare int %bar(...)
18
19declare int %baz(...)
20