diff options
Diffstat (limited to 'test/Transforms/InstCombine/and.ll')
-rw-r--r-- | test/Transforms/InstCombine/and.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll index f01de784e1..23a20fd46f 100644 --- a/test/Transforms/InstCombine/and.ll +++ b/test/Transforms/InstCombine/and.ll @@ -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 +} |