blob: 2985623b6bea4e0cee4a5ff69340d70eb72e4282 [file] [log] [blame]
Evan Cheng1cbd3332007-02-08 22:27:55 +00001; RUN: llvm-as < %s | llc -march=x86 &&
Chris Lattner5b456e82007-04-11 16:12:27 +00002; RUN: llvm-as < %s | llc -march=x86 | grep cmp | wc -l | grep 1 &&
3; RUN: llvm-as < %s | llc -march=x86 | grep shr | wc -l | grep 1 &&
Evan Cheng1cbd3332007-02-08 22:27:55 +00004; RUN: llvm-as < %s | llc -march=x86 | grep xor | wc -l | grep 1
5
6define i1 @t1(i64 %x) {
7 %B = icmp slt i64 %x, 0
8 ret i1 %B
9}
10
11define i1 @t2(i64 %x) {
12 %tmp = icmp ult i64 %x, 4294967296
13 ret i1 %tmp
14}
15
16define i1 @t3(i32 %x) {
17 %tmp = icmp ugt i32 %x, -1
18 ret i1 %tmp
19}