diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-05-28 05:10:20 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-05-28 05:10:20 +0000 |
| commit | 1f906448bc2103be26b216a38e5c7121f4585230 (patch) | |
| tree | da16bdba5d6658da064616cfd6b681e9fb9ec4fa /llvm/test/CodeGen | |
| parent | 9b9df7726009fb775f8f4e0f754b9ffcbbf07f29 (diff) | |
| download | bcm5719-llvm-1f906448bc2103be26b216a38e5c7121f4585230.tar.gz bcm5719-llvm-1f906448bc2103be26b216a38e5c7121f4585230.zip | |
Add a testcase which got fixed by recent legalization work.
llvm-svn: 72517
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/2009-05-19-SingleElementExtractElement.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2009-05-19-SingleElementExtractElement.ll b/llvm/test/CodeGen/X86/2009-05-19-SingleElementExtractElement.ll new file mode 100644 index 00000000000..42bf9e991e6 --- /dev/null +++ b/llvm/test/CodeGen/X86/2009-05-19-SingleElementExtractElement.ll @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | llc -march=x86-64 +; PR3886 + +define i32 @main(i32 %argc, i8** nocapture %argv) nounwind { +entry: + %a = call <1 x i64> @bar() + %tmp5.i = extractelement <1 x i64> %a, i32 0 + %tmp11 = bitcast i64 %tmp5.i to <1 x i64> + %tmp8 = extractelement <1 x i64> %tmp11, i32 0 + %call6 = call i32 (i64)* @foo(i64 %tmp8) + ret i32 undef +} + +declare i32 @foo(i64) + +declare <1 x i64> @bar() |

