summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_insert.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-01-02 05:29:08 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-01-02 05:29:08 +0000
commit52ceafa5c7f86de19c8a98d9686e213a2985c061 (patch)
treecf22341738bf156bbd719b676cedbf7c3b092622 /test/CodeGen/X86/vec_insert.ll
parentccc776fd83b4d200f54cd84af71888e9a740f8fd (diff)
downloadllvm-52ceafa5c7f86de19c8a98d9686e213a2985c061.tar.gz
llvm-52ceafa5c7f86de19c8a98d9686e213a2985c061.tar.bz2
llvm-52ceafa5c7f86de19c8a98d9686e213a2985c061.tar.xz
Use movaps / movd to extract vector element 0 even with sse4.1. It's still cheaper than pextrw especially if the value is in memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_insert.ll')
-rw-r--r--test/CodeGen/X86/vec_insert.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/vec_insert.ll b/test/CodeGen/X86/vec_insert.ll
index c8c9f141ec..e032c5b854 100644
--- a/test/CodeGen/X86/vec_insert.ll
+++ b/test/CodeGen/X86/vec_insert.ll
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movss | count 1
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep pinsrw
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2,-sse41 | grep movss | count 1
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2,-sse41 | not grep pinsrw
define void @test(<4 x float>* %F, i32 %I) {
%tmp = load <4 x float>* %F ; <<4 x float>> [#uses=1]