aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/break-sse-dep.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-12-22 17:47:23 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-12-22 17:47:23 +0000
commitb1f49813334278094b1ecd7ad920f5c276f7b3e6 (patch)
tree0870255a6e4a8ec474c2762244d59666b63ba755 /test/CodeGen/X86/break-sse-dep.ll
parent3dac3b7d2369bc7d051d0f709d63c321c1375532 (diff)
downloadexternal_llvm-b1f49813334278094b1ecd7ad920f5c276f7b3e6.zip
external_llvm-b1f49813334278094b1ecd7ad920f5c276f7b3e6.tar.gz
external_llvm-b1f49813334278094b1ecd7ad920f5c276f7b3e6.tar.bz2
Remove target attribute break-sse-dep. Instead, do not fold load into sse partial update instructions unless optimizing for size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/break-sse-dep.ll')
-rw-r--r--test/CodeGen/X86/break-sse-dep.ll21
1 files changed, 7 insertions, 14 deletions
diff --git a/test/CodeGen/X86/break-sse-dep.ll b/test/CodeGen/X86/break-sse-dep.ll
index 00c943f..acc0647 100644
--- a/test/CodeGen/X86/break-sse-dep.ll
+++ b/test/CodeGen/X86/break-sse-dep.ll
@@ -1,27 +1,20 @@
-; RUN: llc < %s -march=x86-64 -mattr=+sse2,+break-sse-dep | FileCheck %s --check-prefix=YES
-; RUN: llc < %s -march=x86-64 -mattr=+sse2,-break-sse-dep | FileCheck %s --check-prefix=NO
+; RUN: llc < %s -march=x86-64 -mattr=+sse2 | FileCheck %s
define double @t1(float* nocapture %x) nounwind readonly ssp {
entry:
-; YES: t1:
-; YES: movss (%rdi), %xmm0
-; YES; cvtss2sd %xmm0, %xmm0
+; CHECK: t1:
+; CHECK: movss (%rdi), %xmm0
+; CHECK; cvtss2sd %xmm0, %xmm0
-; NO: t1:
-; NO; cvtss2sd (%rdi), %xmm0
%0 = load float* %x, align 4
%1 = fpext float %0 to double
ret double %1
}
-define float @t2(double* nocapture %x) nounwind readonly ssp {
+define float @t2(double* nocapture %x) nounwind readonly ssp optsize {
entry:
-; YES: t2:
-; YES: movsd (%rdi), %xmm0
-; YES; cvtsd2ss %xmm0, %xmm0
-
-; NO: t2:
-; NO; cvtsd2ss (%rdi), %xmm0
+; CHECK: t2:
+; CHECK; cvtsd2ss (%rdi), %xmm0
%0 = load double* %x, align 8
%1 = fptrunc double %0 to float
ret float %1