blob: 98c753864437c3518a9ebbddceff88c6e4f6eee2 [file] [log] [blame]
Andrew Trick90f711d2012-10-15 18:02:27 +00001; RUN: llc < %s -march=x86-64 -mcpu=core2 -enable-misched -misched=ilpmax | FileCheck -check-prefix=MAX %s
2; RUN: llc < %s -march=x86-64 -mcpu=core2 -enable-misched -misched=ilpmin | FileCheck -check-prefix=MIN %s
3;
4; Basic verification of the ScheduleDAGILP metric.
5;
6; MAX: addss
7; MAX: addss
8; MAX: addss
9; MAX: subss
10; MAX: addss
11;
12; MIN: addss
13; MIN: addss
14; MIN: subss
15; MIN: addss
16; MIN: addss
17define float @ilpsched(float %a, float %b, float %c, float %d, float %e, float %f) nounwind uwtable readnone ssp {
18entry:
19 %add = fadd float %a, %b
20 %add1 = fadd float %c, %d
21 %add2 = fadd float %e, %f
22 %add3 = fsub float %add1, %add2
23 %add4 = fadd float %add, %add3
24 ret float %add4
25}