Jakob Stoklund Olesen | 1ac7e66 | 2013-03-26 22:19:12 +0000 | [diff] [blame] | 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 |
Andrew Trick | 90f711d | 2012-10-15 18:02:27 +0000 | [diff] [blame] | 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 |
| 17 | define float @ilpsched(float %a, float %b, float %c, float %d, float %e, float %f) nounwind uwtable readnone ssp { |
| 18 | entry: |
| 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 | } |