summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2009-04-29 22:47:44 +0000
committerNate Begeman <natebegeman@mac.com>2009-04-29 22:47:44 +0000
commitec8eee2d3a402dd001daae3865bc5c10b41c323e (patch)
tree23ef4feb2d2917e632cae10e2d73878b8fba4f3b /test/CodeGen
parenteb3948be16c37396fb3c50ef2c51f7f2da9c34d9 (diff)
downloadllvm-ec8eee2d3a402dd001daae3865bc5c10b41c323e.tar.gz
llvm-ec8eee2d3a402dd001daae3865bc5c10b41c323e.tar.bz2
llvm-ec8eee2d3a402dd001daae3865bc5c10b41c323e.tar.xz
Fix infinite recursion in the C++ code which handles movddup by making it unnecessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70425 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/vec_shuffle-22.ll9
-rw-r--r--test/CodeGen/X86/vec_shuffle.ll2
2 files changed, 7 insertions, 4 deletions
diff --git a/test/CodeGen/X86/vec_shuffle-22.ll b/test/CodeGen/X86/vec_shuffle-22.ll
index 5648356333..d19f110fc1 100644
--- a/test/CodeGen/X86/vec_shuffle-22.ll
+++ b/test/CodeGen/X86/vec_shuffle-22.ll
@@ -1,6 +1,9 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep shuf
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2,-sse3 | grep movlhps | count 2
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse3 | grep movddup | count 1
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=pentium-m -o %t -f
+; RUN: grep movlhps %t | count 1
+; RUN: grep pshufd %t | count 1
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=core2 -o %t -f
+; RUN: grep movlhps %t | count 1
+; RUN: grep movddup %t | count 1
define <4 x float> @t1(<4 x float> %a) nounwind {
entry:
diff --git a/test/CodeGen/X86/vec_shuffle.ll b/test/CodeGen/X86/vec_shuffle.ll
index f39b9fe2db..f43aa1d4e7 100644
--- a/test/CodeGen/X86/vec_shuffle.ll
+++ b/test/CodeGen/X86/vec_shuffle.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -o %t -f
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=core2 -o %t -f
; RUN: grep shufp %t | count 1
; RUN: grep movupd %t | count 1
; RUN: grep pshufhw %t | count 1