• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; 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
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}
26