diff options
| author | Nadav Rotem <nadav.rotem@intel.com> | 2011-10-29 21:23:04 +0000 |
|---|---|---|
| committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-10-29 21:23:04 +0000 |
| commit | bf6568b5d6698d160d2108376debef084ad0ccab (patch) | |
| tree | f46cebcb9ed2bac9e4a013293b394f6cc289774e /llvm/test/CodeGen | |
| parent | 0b0a0b6174557cafbbd78c6c5ad7244ef3592c42 (diff) | |
| download | bcm5719-llvm-bf6568b5d6698d160d2108376debef084ad0ccab.tar.gz bcm5719-llvm-bf6568b5d6698d160d2108376debef084ad0ccab.zip | |
Add a new DAGCombine optimization for BUILD_VECTOR.
If all of the inputs are zero/any_extended, create a new simple BV
which can be further optimized by other BV optimizations.
llvm-svn: 143297
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/2011-10-27-tstore.ll | 16 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/vec_shuffle-37.ll | 10 |
3 files changed, 23 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll b/llvm/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll index 025ab2e7c11..63a7da87550 100644 --- a/llvm/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll +++ b/llvm/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -mtriple=x86_64-linux -mattr=+mmx | grep movd | count 3 +; RUN: llc < %s -mtriple=x86_64-linux -mattr=+mmx | grep movd | count 2 define i64 @a(i32 %a, i32 %b) nounwind readnone { entry: diff --git a/llvm/test/CodeGen/X86/2011-10-27-tstore.ll b/llvm/test/CodeGen/X86/2011-10-27-tstore.ll new file mode 100644 index 00000000000..016e02c3d5d --- /dev/null +++ b/llvm/test/CodeGen/X86/2011-10-27-tstore.ll @@ -0,0 +1,16 @@ +; RUN: llc < %s -march=x86-64 -mcpu=corei7 | FileCheck %s + +target triple = "x86_64-unknown-linux-gnu" + +;CHECK: ltstore +;CHECK: pshufd +;CHECK: pshufd +;CHECK: ret +define void @ltstore() { +entry: + %in = load <4 x i32>* undef + %j = shufflevector <4 x i32> %in, <4 x i32> undef, <2 x i32> <i32 0, i32 1> + store <2 x i32> %j, <2 x i32>* undef + ret void +} + diff --git a/llvm/test/CodeGen/X86/vec_shuffle-37.ll b/llvm/test/CodeGen/X86/vec_shuffle-37.ll index e91a7347cca..06083989382 100644 --- a/llvm/test/CodeGen/X86/vec_shuffle-37.ll +++ b/llvm/test/CodeGen/X86/vec_shuffle-37.ll @@ -26,10 +26,12 @@ entry: define void @t02(<8 x i32>* %source, <2 x i32>* %dest) nounwind noinline { entry: -; CHECK: movl 36({{%rdi|%rcx}}) -; CHECK-NEXT: movl 48({{%rdi|%rcx}}) -; CHECK: punpcklqdq -; CHECK: movq %xmm0, ({{%rsi|%rdx}}) +; CHECK: t02 +; CHECK: movaps +; CHECK: shufps +; CHECK: pshufd +; CHECK: movq +; CHECK: ret %0 = bitcast <8 x i32>* %source to <4 x i32>* %arrayidx = getelementptr inbounds <4 x i32>* %0, i64 3 %tmp2 = load <4 x i32>* %arrayidx, align 16 |

