aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-10-15 18:02:27 +0000
committerAndrew Trick <atrick@apple.com>2012-10-15 18:02:27 +0000
commit1e94e98b0ec44c5b04eaa8c9e7fb6d7669b3cdea (patch)
tree09fba63f895212513b577f5fd38361b18507ca23 /test/CodeGen
parentce353b31ae327ad90dda4808814eba15cd662d35 (diff)
downloadexternal_llvm-1e94e98b0ec44c5b04eaa8c9e7fb6d7669b3cdea.zip
external_llvm-1e94e98b0ec44c5b04eaa8c9e7fb6d7669b3cdea.tar.gz
external_llvm-1e94e98b0ec44c5b04eaa8c9e7fb6d7669b3cdea.tar.bz2
misched: ILP scheduler for experimental heuristics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/misched-ilp.ll25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/CodeGen/X86/misched-ilp.ll b/test/CodeGen/X86/misched-ilp.ll
new file mode 100644
index 0000000..98c7538
--- /dev/null
+++ b/test/CodeGen/X86/misched-ilp.ll
@@ -0,0 +1,25 @@
+; RUN: llc < %s -march=x86-64 -mcpu=core2 -enable-misched -misched=ilpmax | FileCheck -check-prefix=MAX %s
+; RUN: llc < %s -march=x86-64 -mcpu=core2 -enable-misched -misched=ilpmin | FileCheck -check-prefix=MIN %s
+;
+; Basic verification of the ScheduleDAGILP metric.
+;
+; MAX: addss
+; MAX: addss
+; MAX: addss
+; MAX: subss
+; MAX: addss
+;
+; MIN: addss
+; MIN: addss
+; MIN: subss
+; MIN: addss
+; MIN: addss
+define float @ilpsched(float %a, float %b, float %c, float %d, float %e, float %f) nounwind uwtable readnone ssp {
+entry:
+ %add = fadd float %a, %b
+ %add1 = fadd float %c, %d
+ %add2 = fadd float %e, %f
+ %add3 = fsub float %add1, %add2
+ %add4 = fadd float %add, %add3
+ ret float %add4
+}