diff options
author | Michael Liao <michael.liao@intel.com> | 2012-10-25 17:50:05 +0000 |
---|---|---|
committer | Michael Liao <michael.liao@intel.com> | 2012-10-25 17:50:05 +0000 |
commit | 8fe3a6bda46d5f36a409d5203f05ea8e99602eee (patch) | |
tree | e698424c25f30bb79a4a3338a008514aca4bcd7a /llvm/test/CodeGen/X86 | |
parent | 911c1f38b0a82cb6fdc86c84ff908229ad4a12db (diff) | |
download | bcm5719-llvm-8fe3a6bda46d5f36a409d5203f05ea8e99602eee.tar.gz bcm5719-llvm-8fe3a6bda46d5f36a409d5203f05ea8e99602eee.zip |
Add test for ATOM ISA SSSE3
- Remove SSE4.1 feature in other ATOM-based test cases
llvm-svn: 166699
Diffstat (limited to 'llvm/test/CodeGen/X86')
-rw-r--r-- | llvm/test/CodeGen/X86/atom-shuf.ll | 9 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/vec_shuffle-26.ll | 6 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/widen_cast-1.ll | 2 |
3 files changed, 13 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/atom-shuf.ll b/llvm/test/CodeGen/X86/atom-shuf.ll new file mode 100644 index 00000000000..4c3f2f67c54 --- /dev/null +++ b/llvm/test/CodeGen/X86/atom-shuf.ll @@ -0,0 +1,9 @@ +; RUN: llc < %s -mtriple=x86_64-linux-pc -mcpu=atom | FileCheck %s + +define <16 x i8> @foo(<16 x i8> %in) { + %r = shufflevector <16 x i8> %in, <16 x i8> undef, <16 x i32> < i32 7, i32 3, i32 2, i32 11, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef> + ret <16 x i8> %r +; CHECK: foo +; CHECK: pshufb +; CHECK-NEXT: ret +} diff --git a/llvm/test/CodeGen/X86/vec_shuffle-26.ll b/llvm/test/CodeGen/X86/vec_shuffle-26.ll index 8dfc2eab41b..4c56f848ded 100644 --- a/llvm/test/CodeGen/X86/vec_shuffle-26.ll +++ b/llvm/test/CodeGen/X86/vec_shuffle-26.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s -march=x86 -mcpu=generic -mattr=sse41 | FileCheck %s -; RUN: llc < %s -march=x86 -mcpu=atom -mattr=+sse41 | FileCheck -check-prefix=ATOM %s +; RUN: llc < %s -march=x86 -mcpu=atom | FileCheck -check-prefix=ATOM %s ; Transpose example using the more generic vector shuffle. Return float8 ; instead of float16 @@ -47,8 +47,8 @@ entry: ; CHECK: extractps ${{[0-9]+}}, %xmm{{[0-9]+}}, {{[0-9]*}}([[BASEREG]]) ; ATOM: lo_hi_shift ; ATOM: movhps ([[BASEREG:%[a-z]+]]), -; ATOM: extractps ${{[0-9]+}}, %xmm{{[0-9]+}}, {{[0-9]*}}([[BASEREG]]) -; ATOM: extractps ${{[0-9]+}}, %xmm{{[0-9]+}}, {{[0-9]*}}([[BASEREG]]) +; ATOM: movd %xmm{{[0-9]+}}, {{[0-9]*}}([[BASEREG]]) +; ATOM: movd %xmm{{[0-9]+}}, {{[0-9]*}}([[BASEREG]]) %v.i = bitcast float* %y to <4 x float>* %0 = load <4 x float>* %v.i, align 1 %1 = bitcast float* %x to <1 x i64>* diff --git a/llvm/test/CodeGen/X86/widen_cast-1.ll b/llvm/test/CodeGen/X86/widen_cast-1.ll index ebdfea9a37f..56c63644e02 100644 --- a/llvm/test/CodeGen/X86/widen_cast-1.ll +++ b/llvm/test/CodeGen/X86/widen_cast-1.ll @@ -1,5 +1,5 @@ ; RUN: llc -march=x86 -mcpu=generic -mattr=+sse42 < %s | FileCheck %s -; RUN: llc -march=x86 -mcpu=atom -mattr=+sse42 < %s | FileCheck -check-prefix=ATOM %s +; RUN: llc -march=x86 -mcpu=atom < %s | FileCheck -check-prefix=ATOM %s ; CHECK: paddd ; CHECK: movl |