Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; PR1075 |
Dan Gohman | 0a06310 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 3 | |
Chris Lattner | 9e2f641 | 2009-08-30 21:45:23 +0000 | [diff] [blame] | 4 | define float @foo(float %x) nounwind { |
Dan Gohman | 7ce405e | 2009-06-04 22:49:04 +0000 | [diff] [blame] | 5 | %tmp1 = fmul float %x, 3.000000e+00 |
| 6 | %tmp3 = fmul float %x, 5.000000e+00 |
| 7 | %tmp5 = fmul float %x, 7.000000e+00 |
| 8 | %tmp7 = fmul float %x, 1.100000e+01 |
| 9 | %tmp10 = fadd float %tmp1, %tmp3 |
| 10 | %tmp12 = fadd float %tmp10, %tmp5 |
| 11 | %tmp14 = fadd float %tmp12, %tmp7 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 12 | ret float %tmp14 |
Chris Lattner | 9e2f641 | 2009-08-30 21:45:23 +0000 | [diff] [blame] | 13 | |
| 14 | ; CHECK: mulss LCPI1_2(%rip) |
| 15 | ; CHECK-NEXT: addss |
| 16 | ; CHECK-NEXT: mulss LCPI1_3(%rip) |
| 17 | ; CHECK-NEXT: addss |
| 18 | ; CHECK-NEXT: ret |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 19 | } |