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 | b999a7056eeb3233b0cebaba146b2c11d0b2d6c5 (patch) | |
tree | 078a4087321a4ab2521403b0507eb8837dd0fd26 /test/CodeGen/X86/2009-05-19-SingleElementExtractElement.ll | |
parent | e727d7a08406265acb10d0c52943ef92859710f2 (diff) | |
download | llvm-b999a7056eeb3233b0cebaba146b2c11d0b2d6c5.tar.gz llvm-b999a7056eeb3233b0cebaba146b2c11d0b2d6c5.tar.bz2 llvm-b999a7056eeb3233b0cebaba146b2c11d0b2d6c5.tar.xz |
Add a testcase which got fixed by recent legalization work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2009-05-19-SingleElementExtractElement.ll')
-rw-r--r-- | test/CodeGen/X86/2009-05-19-SingleElementExtractElement.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2009-05-19-SingleElementExtractElement.ll b/test/CodeGen/X86/2009-05-19-SingleElementExtractElement.ll new file mode 100644 index 0000000000..42bf9e991e --- /dev/null +++ b/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() |