blob: 78d8d8f3d8aed71d01a1bf3e0b599917318f9485 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep cmp | wc -l | grep 1
2; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep test | wc -l | grep 1
3
4int %f1(int %X, int* %y) {
5 %tmp = load int* %y
6 %tmp = seteq int %tmp, 0
7 br bool %tmp, label %ReturnBlock, label %cond_true
8
9cond_true:
10 ret int 1
11
12ReturnBlock:
13 ret int 0
14}
15
16int %f2(int %X, int* %y) {
17 %tmp = load int* %y
18 %tmp1 = shl int %tmp, ubyte 3
19 %tmp1 = seteq int %tmp1, 0
20 br bool %tmp1, label %ReturnBlock, label %cond_true
21
22cond_true:
23 ret int 1
24
25ReturnBlock:
26 ret int 0
27}