aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/GVN/2008-02-12-UndefLoad.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GVN/2008-02-12-UndefLoad.ll')
-rw-r--r--test/Transforms/GVN/2008-02-12-UndefLoad.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Transforms/GVN/2008-02-12-UndefLoad.ll b/test/Transforms/GVN/2008-02-12-UndefLoad.ll
index a1aed867ec63..0e6b17c4aa50 100644
--- a/test/Transforms/GVN/2008-02-12-UndefLoad.ll
+++ b/test/Transforms/GVN/2008-02-12-UndefLoad.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -gvn -S | not grep load
+; RUN: opt < %s -gvn -S | FileCheck %s
; PR1996
%struct.anon = type { i32, i8, i8, i8, i8 }
@@ -9,6 +9,7 @@ entry:
%tmp = getelementptr %struct.anon, %struct.anon* %c, i32 0, i32 0 ; <i32*> [#uses=1]
%tmp1 = getelementptr i32, i32* %tmp, i32 1 ; <i32*> [#uses=2]
%tmp2 = load i32, i32* %tmp1, align 4 ; <i32> [#uses=1]
+; CHECK-NOT: load
%tmp3 = or i32 %tmp2, 11 ; <i32> [#uses=1]
%tmp4 = and i32 %tmp3, -21 ; <i32> [#uses=1]
store i32 %tmp4, i32* %tmp1, align 4