1 ; RUN: llc < %s -march=x86 | FileCheck %s 2 3 define i1 @t1(i64 %x) nounwind { 4 %B = icmp slt i64 %x, 0 5 ret i1 %B 6 } 7 8 ; CHECK: t1 9 ; CHECK: shrl 10 ; CHECK-NOT: shrl 11 ; CHECK: ret 12 13 define i1 @t2(i64 %x) nounwind { 14 %tmp = icmp ult i64 %x, 4294967296 15 ret i1 %tmp 16 } 17 18 ; CHECK: t2 19 ; CHECK: cmp 20 ; CHECK-NOT: cmp 21 ; CHECK: ret 22 23 define i1 @t3(i32 %x) nounwind { 24 %tmp = icmp ugt i32 %x, -1 25 ret i1 %tmp 26 } 27 28 ; CHECK: t3 29 ; CHECK: xor 30 ; CHECK-NOT: xor 31 ; CHECK: ret 32