diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-01-02 05:29:08 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-01-02 05:29:08 +0000 |
commit | 52ceafa5c7f86de19c8a98d9686e213a2985c061 (patch) | |
tree | cf22341738bf156bbd719b676cedbf7c3b092622 /test/CodeGen/X86/vec_shuffle-12.ll | |
parent | ccc776fd83b4d200f54cd84af71888e9a740f8fd (diff) |
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_shuffle-12.ll')
-rw-r--r-- | test/CodeGen/X86/vec_shuffle-12.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGen/X86/vec_shuffle-12.ll b/test/CodeGen/X86/vec_shuffle-12.ll index 3f49b02543..aad27ea2f8 100644 --- a/test/CodeGen/X86/vec_shuffle-12.ll +++ b/test/CodeGen/X86/vec_shuffle-12.ll @@ -5,24 +5,24 @@ ; RUN: grep pshuflw %t | count 3 ; RUN: grep pshufhw %t | count 2 -define <8 x i16> @t1(<8 x i16>* %A, <8 x i16>* %B) { +define <8 x i16> @t1(<8 x i16>* %A, <8 x i16>* %B) nounwind { %tmp1 = load <8 x i16>* %A %tmp2 = load <8 x i16>* %B %tmp3 = shufflevector <8 x i16> %tmp1, <8 x i16> %tmp2, <8 x i32> < i32 8, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7 > ret <8 x i16> %tmp3 } -define <8 x i16> @t2(<8 x i16> %A, <8 x i16> %B) { +define <8 x i16> @t2(<8 x i16> %A, <8 x i16> %B) nounwind { %tmp = shufflevector <8 x i16> %A, <8 x i16> %B, <8 x i32> < i32 9, i32 1, i32 2, i32 9, i32 4, i32 5, i32 6, i32 7 > ret <8 x i16> %tmp } -define <8 x i16> @t3(<8 x i16> %A, <8 x i16> %B) { +define <8 x i16> @t3(<8 x i16> %A, <8 x i16> %B) nounwind { %tmp = shufflevector <8 x i16> %A, <8 x i16> %A, <8 x i32> < i32 8, i32 3, i32 2, i32 13, i32 7, i32 6, i32 5, i32 4 > ret <8 x i16> %tmp } -define <8 x i16> @t4(<8 x i16> %A, <8 x i16> %B) { +define <8 x i16> @t4(<8 x i16> %A, <8 x i16> %B) nounwind { %tmp = shufflevector <8 x i16> %A, <8 x i16> %B, <8 x i32> < i32 0, i32 7, i32 2, i32 3, i32 1, i32 5, i32 6, i32 5 > ret <8 x i16> %tmp } |