summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/v2f32.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-05 05:52:56 +0000
committerChris Lattner <sabre@nondot.org>2010-07-05 05:52:56 +0000
commit11b3d1621d98c1a09503190cb757c18db863606e (patch)
tree6d035a1ebd37d9b2215f0cf60acf0fad46808632 /test/CodeGen/X86/v2f32.ll
parentc06cbad14134bcb5dc9aadb8f94a385de750b0d0 (diff)
downloadllvm-11b3d1621d98c1a09503190cb757c18db863606e.tar.gz
llvm-11b3d1621d98c1a09503190cb757c18db863606e.tar.bz2
llvm-11b3d1621d98c1a09503190cb757c18db863606e.tar.xz
another v2f32 case, in this case showing poor codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/v2f32.ll')
-rw-r--r--test/CodeGen/X86/v2f32.ll17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/CodeGen/X86/v2f32.ll b/test/CodeGen/X86/v2f32.ll
index 93ab68ee16..9c4b773a61 100644
--- a/test/CodeGen/X86/v2f32.ll
+++ b/test/CodeGen/X86/v2f32.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86-64 -asm-verbose=0 -o - | FileCheck %s -check-prefix=X64
+; RUN: llc < %s -march=x86-64 -mcpu=penryn -asm-verbose=0 -o - | FileCheck %s -check-prefix=X64
; RUN: llc < %s -mcpu=yonah -march=x86 -asm-verbose=0 -o - | FileCheck %s -check-prefix=X32
; PR7518
@@ -22,3 +22,18 @@ define void @test1(<2 x float> %Q, float *%P2) nounwind {
; X32-NEXT: ret
}
+
+define <2 x float> @test2(<2 x float> %Q, <2 x float> %R, <2 x float> *%P) nounwind {
+ %Z = fadd <2 x float> %Q, %R
+ ret <2 x float> %Z
+
+; X64: test2:
+; X64-NEXT: insertps $0
+; X64-NEXT: insertps $16
+; X64-NEXT: insertps $0
+; X64-NEXT: insertps $16
+; X64-NEXT: addps
+; X64-NEXT: movaps
+; X64-NEXT: pshufd
+; X64-NEXT: ret
+}