New testcases
[oota-llvm.git] / test / Transforms / InstCombine / and.ll
index f01de784e198a014ab997a9663ed0058e013ebee..23a20fd46f256ed566f898c0e1b3569e64d5a3e1 100644 (file)
@@ -47,3 +47,14 @@ ubyte %test8(ubyte %A) {    ; AND associates
        ret ubyte %C
 }
 
+bool %test9(int %A) {
+       %B = and int %A, -2147483648   ; Test of sign bit, convert to setle %A, 0 
+       %C = cast int %B to bool
+       ret bool %C
+}
+
+bool %test9(uint %A) {
+       %B = and uint %A, 2147483648   ; Test of sign bit, convert to setle %A, 0 
+       %C = cast uint %B to bool
+       ret bool %C
+}