summaryrefslogtreecommitdiff
path: root/test/Transforms/GVN/basic.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GVN/basic.ll')
-rw-r--r--test/Transforms/GVN/basic.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Transforms/GVN/basic.ll b/test/Transforms/GVN/basic.ll
index 6f4aace45fde8..44b321306319a 100644
--- a/test/Transforms/GVN/basic.ll
+++ b/test/Transforms/GVN/basic.ll
@@ -1,4 +1,5 @@
-; RUN: opt < %s -gvn -S | not grep "%z2 ="
+; RUN: opt < %s -gvn -S | FileCheck %s
+; RUN: opt < %s -passes=gvn -S | FileCheck %s
define i32 @main() {
block1:
@@ -8,3 +9,8 @@ block2:
%z2 = bitcast i32 0 to i32
ret i32 %z2
}
+
+; CHECK: define i32 @main() {
+; CHECK-NEXT: block1:
+; CHECK-NEXT: ret i32 0
+; CHECK-NEXT: }