summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2012-12-31 18:26:42 +0000
committerJakub Staszak <kubastaszak@gmail.com>2012-12-31 18:26:42 +0000
commit526057921dcb57e0d51d60ddb0f5ce16596c307f (patch)
treee2b75d18c765f167faa1b0aebe2592c8c0c372dd /test
parent5b712efd9a4d29119ce136d46a23454bdc103f68 (diff)
downloadllvm-526057921dcb57e0d51d60ddb0f5ce16596c307f.tar.gz
llvm-526057921dcb57e0d51d60ddb0f5ce16596c307f.tar.bz2
llvm-526057921dcb57e0d51d60ddb0f5ce16596c307f.tar.xz
Add extra CHECK to make sure that 'or' instruction was replaced.
Also add an assert to avoid confusion in the code where is known that C1 <= C2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/icmp.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/icmp.ll b/test/Transforms/InstCombine/icmp.ll
index 5102a9cb6a..8fb6144c3f 100644
--- a/test/Transforms/InstCombine/icmp.ll
+++ b/test/Transforms/InstCombine/icmp.ll
@@ -699,6 +699,7 @@ define i1 @test68(i32 %x) nounwind uwtable {
; CHECK: @test69
; CHECK: %1 = and i32 %c, -33
; CHECK: %2 = icmp eq i32 %1, 65
+; CHECK: ret i1 %2
define i1 @test69(i32 %c) nounwind uwtable {
%1 = icmp eq i32 %c, 97
%2 = icmp eq i32 %c, 65