summaryrefslogtreecommitdiff
path: root/test/Analysis/ValueTracking/known-bits-from-range-md.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:41:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:41:05 +0000
commit01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch)
tree4def12e759965de927d963ac65840d663ef9d1ea /test/Analysis/ValueTracking/known-bits-from-range-md.ll
parentf0f4822ed4b66e3579e92a89f368f8fb860e218e (diff)
Diffstat (limited to 'test/Analysis/ValueTracking/known-bits-from-range-md.ll')
-rw-r--r--test/Analysis/ValueTracking/known-bits-from-range-md.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Analysis/ValueTracking/known-bits-from-range-md.ll b/test/Analysis/ValueTracking/known-bits-from-range-md.ll
index e1de089b3501c..3bd8c287af963 100644
--- a/test/Analysis/ValueTracking/known-bits-from-range-md.ll
+++ b/test/Analysis/ValueTracking/known-bits-from-range-md.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -instsimplify < %s | FileCheck %s
+; RUN: opt -S -instsimplify -instcombine < %s | FileCheck %s
define i1 @test0(i8* %ptr) {
; CHECK-LABEL: @test0(
@@ -23,10 +23,10 @@ define i1 @test1(i8* %ptr) {
define i1 @test2(i8* %ptr) {
; CHECK-LABEL: @test2(
entry:
-; CHECK: load
-; CHECK: and
-; CHECK: icmp eq
-; CHECK: ret
+; CHECK: %val = load i8
+; CHECK: %and = and i8 %val
+; CHECK: %is.eq = icmp ne i8 %and, 0
+; CHECK: ret i1 %is.eq
%val = load i8, i8* %ptr, !range !{i8 64, i8 129}
%and = and i8 %val, 64
%is.eq = icmp eq i8 %and, 64