aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/SCCP/2002-05-02-MissSecondInst.ll')
-rw-r--r--test/Transforms/SCCP/2002-05-02-MissSecondInst.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll b/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll
new file mode 100644
index 0000000..bb5b51d
--- /dev/null
+++ b/test/Transforms/SCCP/2002-05-02-MissSecondInst.ll
@@ -0,0 +1,8 @@
+; RUN: opt < %s -sccp -S | not grep sub
+
+define void @test3(i32, i32) {
+ add i32 0, 0 ; <i32>:3 [#uses=0]
+ sub i32 0, 4 ; <i32>:4 [#uses=0]
+ ret void
+}
+