Update this test to keep testing the -instcombine transform it's supposed to be testi...
authorFrits van Bommel <fvbommel@gmail.com>
Mon, 29 Nov 2010 20:55:40 +0000 (20:55 +0000)
committerFrits van Bommel <fvbommel@gmail.com>
Mon, 29 Nov 2010 20:55:40 +0000 (20:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120319 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/extractvalue.ll

index 875f860b3d7fa416f5dd8dc5f3fd09e3e434411d..d1e11e868fff03121c30cd0f5b4687d3b68458ca 100644 (file)
@@ -4,10 +4,10 @@
 ; together
 declare void @bar({i32, i32} %a)
 
-define i32 @foo() {
+define i32 @foo(i32 %a, i32 %b) {
         ; Build a simple struct and pull values out again
-        %s1.1 = insertvalue {i32, i32} undef, i32 0, 0
-        %s1 = insertvalue {i32, i32} %s1.1, i32 1, 1
+        %s1.1 = insertvalue {i32, i32} undef, i32 %a, 0
+        %s1 = insertvalue {i32, i32} %s1.1, i32 %b, 1
         %v1 = extractvalue {i32, i32} %s1, 0
         %v2 = extractvalue {i32, i32} %s1, 1