blob: c6cedb7be87143fec71456e26cda047c93d8fb36 [file] [log] [blame]
Andrew Trick5a89e0e2012-10-15 18:21:08 +00001; RUN: llc < %s -mtriple=x86_64-apple-macosx -mcpu=core2 -enable-misched -misched=ilpmax | FileCheck -check-prefix=MAX %s
2; RUN: llc < %s -mtriple=x86_64-apple-macosx -mcpu=core2 -enable-misched -misched=ilpmin | FileCheck -check-prefix=MIN %s
Andrew Trick90f711d2012-10-15 18:02:27 +00003;
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}