diff options
author | Duncan Sands <baldrick@free.fr> | 2011-01-29 13:27:00 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2011-01-29 13:27:00 +0000 |
commit | 9136782d273cd45b6f19a7d0cc0d146d0791bac9 (patch) | |
tree | 7958aefded9a073a7c5a1b686609b7e6c139c5ff /test | |
parent | 2c94b4201beccbd061fd679ea7e9db1381fe8357 (diff) |
Fix typo: should have been testing that X was odd, not V.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstSimplify/2011-01-18-Compare.ll | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/Transforms/InstSimplify/2011-01-18-Compare.ll b/test/Transforms/InstSimplify/2011-01-18-Compare.ll index c905c443d2..ed358443d6 100644 --- a/test/Transforms/InstSimplify/2011-01-18-Compare.ll +++ b/test/Transforms/InstSimplify/2011-01-18-Compare.ll @@ -108,3 +108,27 @@ define i1 @or(i32 %x) { ret i1 %c ; CHECK: ret i1 false } + +define i1 @shl(i32 %x) { +; CHECK: @shl + %s = shl i32 1, %x + %c = icmp eq i32 %s, 0 + ret i1 %c +; CHECK: ret i1 false +} + +define i1 @lshr(i32 %x) { +; CHECK: @lshr + %s = lshr i32 -1, %x + %c = icmp eq i32 %s, 0 + ret i1 %c +; CHECK: ret i1 false +} + +define i1 @ashr(i32 %x) { +; CHECK: @ashr + %s = ashr i32 -1, %x + %c = icmp eq i32 %s, 0 + ret i1 %c +; CHECK: ret i1 false +} |