Evan Cheng | 1cbd333 | 2007-02-08 22:27:55 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86 && |
2 | ; RUN: llvm-as < %s | llc -march=x86 | grep cmp | wc -l | grep 2 && | ||||
3 | ; RUN: llvm-as < %s | llc -march=x86 | grep xor | wc -l | grep 1 | ||||
4 | |||||
5 | define i1 @t1(i64 %x) { | ||||
6 | %B = icmp slt i64 %x, 0 | ||||
7 | ret i1 %B | ||||
8 | } | ||||
9 | |||||
10 | define i1 @t2(i64 %x) { | ||||
11 | %tmp = icmp ult i64 %x, 4294967296 | ||||
12 | ret i1 %tmp | ||||
13 | } | ||||
14 | |||||
15 | define i1 @t3(i32 %x) { | ||||
16 | %tmp = icmp ugt i32 %x, -1 | ||||
17 | ret i1 %tmp | ||||
18 | } |