diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-10-06 21:13:08 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-10-06 21:13:08 +0000 |
commit | bdd9d9f4df08779a194283c579c9d26d4aba8f0b (patch) | |
tree | a12486c2bf1e82f14265930dc027a02fbdcbbe29 /test/CodeGen | |
parent | 21c12cf42cde39307f97e3a971baa50ca66e6392 (diff) | |
download | external_llvm-bdd9d9f4df08779a194283c579c9d26d4aba8f0b.zip external_llvm-bdd9d9f4df08779a194283c579c9d26d4aba8f0b.tar.gz external_llvm-bdd9d9f4df08779a194283c579c9d26d4aba8f0b.tar.bz2 |
Fix PR2850 and PR2863. Only generate movddup for 128-bit SSE vector shuffles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/2008-10-06-MMXISelBug.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-10-06-MMXISelBug.ll b/test/CodeGen/X86/2008-10-06-MMXISelBug.ll new file mode 100644 index 0000000..bd1ad59 --- /dev/null +++ b/test/CodeGen/X86/2008-10-06-MMXISelBug.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx,+sse2 +; PR2850 + +@tmp_V2i = common global <2 x i32> zeroinitializer ; <<2 x i32>*> [#uses=2] + +define void @f0() nounwind { +entry: + %0 = load <2 x i32>* @tmp_V2i, align 8 ; <<2 x i32>> [#uses=1] + %1 = shufflevector <2 x i32> %0, <2 x i32> undef, <2 x i32> zeroinitializer ; <<2 x i32>> [#uses=1] + store <2 x i32> %1, <2 x i32>* @tmp_V2i, align 8 + ret void +} |