[llvm-commits] [llvm] r107614 - /llvm/trunk/test/CodeGen/X86/v2f32.ll
Chris Lattner
sabre at nondot.org
Sun Jul 4 22:52:56 PDT 2010
Author: lattner
Date: Mon Jul 5 00:52:56 2010
New Revision: 107614
URL: http://llvm.org/viewvc/llvm-project?rev=107614&view=rev
Log:
another v2f32 case, in this case showing poor codegen.
Modified:
llvm/trunk/test/CodeGen/X86/v2f32.ll
Modified: llvm/trunk/test/CodeGen/X86/v2f32.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/v2f32.ll?rev=107614&r1=107613&r2=107614&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/v2f32.ll (original)
+++ llvm/trunk/test/CodeGen/X86/v2f32.ll Mon Jul 5 00:52:56 2010
@@ -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 @@
; 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
+}
More information about the llvm-commits
mailing list