summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/break-anti-dependencies.ll
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-10-01 21:46:35 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-10-01 21:46:35 +0000
commit471850ab84301dd47cab2bf8d694fcb5766c1169 (patch)
tree03f4b18c0fefa6a17c4b7516336aef017399f8fe /test/CodeGen/X86/break-anti-dependencies.ll
parent10469f8e48e007989b0469e677d4000a1311ecd2 (diff)
downloadllvm-471850ab84301dd47cab2bf8d694fcb5766c1169.tar.gz
llvm-471850ab84301dd47cab2bf8d694fcb5766c1169.tar.bz2
llvm-471850ab84301dd47cab2bf8d694fcb5766c1169.tar.xz
Restore the -post-RA-scheduler flag as an override for the target specification. Remove -mattr for setting PostRAScheduler enable and instead use CPU string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/break-anti-dependencies.ll')
-rw-r--r--test/CodeGen/X86/break-anti-dependencies.ll33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/CodeGen/X86/break-anti-dependencies.ll b/test/CodeGen/X86/break-anti-dependencies.ll
new file mode 100644
index 0000000000..6b245c103e
--- /dev/null
+++ b/test/CodeGen/X86/break-anti-dependencies.ll
@@ -0,0 +1,33 @@
+; RUN: llc < %s -march=x86-64 -post-RA-scheduler -break-anti-dependencies=false > %t
+; RUN: grep {%xmm0} %t | count 14
+; RUN: not grep {%xmm1} %t
+; RUN: llc < %s -march=x86-64 -post-RA-scheduler -break-anti-dependencies > %t
+; RUN: grep {%xmm0} %t | count 7
+; RUN: grep {%xmm1} %t | count 7
+
+define void @goo(double* %r, double* %p, double* %q) nounwind {
+entry:
+ %0 = load double* %p, align 8
+ %1 = fadd double %0, 1.100000e+00
+ %2 = fmul double %1, 1.200000e+00
+ %3 = fadd double %2, 1.300000e+00
+ %4 = fmul double %3, 1.400000e+00
+ %5 = fadd double %4, 1.500000e+00
+ %6 = fptosi double %5 to i32
+ %7 = load double* %r, align 8
+ %8 = fadd double %7, 7.100000e+00
+ %9 = fmul double %8, 7.200000e+00
+ %10 = fadd double %9, 7.300000e+00
+ %11 = fmul double %10, 7.400000e+00
+ %12 = fadd double %11, 7.500000e+00
+ %13 = fptosi double %12 to i32
+ %14 = icmp slt i32 %6, %13
+ br i1 %14, label %bb, label %return
+
+bb:
+ store double 9.300000e+00, double* %q, align 8
+ ret void
+
+return:
+ ret void
+}