blob: 4ca296ca92e5f48696b7ffc5348692ddf29dca9a [file] [log] [blame]
Jakob Stoklund Olesen1ac7e662013-03-26 22:19:12 +00001; RUN: llc < %s -mtriple=x86_64-apple-macosx -mcpu=nocona -enable-misched -misched=ilpmax | FileCheck -check-prefix=MAX %s
2; RUN: llc < %s -mtriple=x86_64-apple-macosx -mcpu=nocona -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}