blob: e0165fb01b53677cbd76b4b9d4f9f1031ef187a6 [file] [log] [blame]
Andrew Trickf6c39412011-03-23 23:11:02 +00001; RUN: llc < %s -march=x86 | grep cmp | count 1
2; RUN: llc < %s -march=x86 | grep shr | count 1
3; RUN: llc < %s -march=x86 | grep xor | count 1
Evan Cheng1cbd3332007-02-08 22:27:55 +00004
Andrew Trickf6c39412011-03-23 23:11:02 +00005define i1 @t1(i64 %x) nounwind {
6 %B = icmp slt i64 %x, 0
7 ret i1 %B
Evan Cheng1cbd3332007-02-08 22:27:55 +00008}
9
Evan Cheng4d46d0a2008-08-28 23:48:31 +000010define i1 @t2(i64 %x) nounwind {
Andrew Trickf6c39412011-03-23 23:11:02 +000011 %tmp = icmp ult i64 %x, 4294967296
12 ret i1 %tmp
Evan Cheng1cbd3332007-02-08 22:27:55 +000013}
14
Andrew Trickf6c39412011-03-23 23:11:02 +000015define i1 @t3(i32 %x) nounwind {
16 %tmp = icmp ugt i32 %x, -1
17 ret i1 %tmp
Evan Cheng1cbd3332007-02-08 22:27:55 +000018}