diff options
author | Tanya Lattner <tonic@nondot.org> | 2009-09-16 01:13:59 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2009-09-16 01:13:59 +0000 |
commit | b580bd1eb2cedb51fdc2944ff7a42d9ac6898f4f (patch) | |
tree | 4adb7e99537904a745e6947bd16525836b8b426d /test/Assembler/insertextractvalue.ll | |
parent | 565fb5a655d27ae3cb6d9297b33976c9eca7fa3e (diff) |
Merge 81845 from mainline.
fix PR4963: folding insertvalue would sometimes turn a packed struct into
an unpacked one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_26@81980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/insertextractvalue.ll')
-rw-r--r-- | test/Assembler/insertextractvalue.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Assembler/insertextractvalue.ll b/test/Assembler/insertextractvalue.ll index 3581238aa4..2f5521fba8 100644 --- a/test/Assembler/insertextractvalue.ll +++ b/test/Assembler/insertextractvalue.ll @@ -21,3 +21,9 @@ define float @dar({{i32},{float, double}}* %p) nounwind { store {{i32},{float, double}} insertvalue ({{i32},{float, double}} zeroinitializer, double 20.0, 1, 1), {{i32},{float, double}}* %p ret float extractvalue ({{i32},{float, double}} zeroinitializer, 1, 0) } + + +; PR4963 +define <{ i32, i32 }> @test57() { + ret <{ i32, i32 }> insertvalue (<{ i32, i32 }> zeroinitializer, i32 4, 1) +} |