Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; PR1075 |
Dan Gohman | ad1cc9c | 2009-12-07 19:04:31 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -mtriple=x86_64-apple-darwin -O3 | 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 | |
Dan Gohman | f03f023 | 2010-04-17 16:29:15 +0000 | [diff] [blame] | 14 | ; CHECK: mulss LCPI0_0(%rip) |
| 15 | ; CHECK: mulss LCPI0_1(%rip) |
Evan Cheng | 2fdd8db | 2010-03-18 06:55:42 +0000 | [diff] [blame] | 16 | ; CHECK: addss |
Dan Gohman | f03f023 | 2010-04-17 16:29:15 +0000 | [diff] [blame] | 17 | ; CHECK: mulss LCPI0_2(%rip) |
Evan Cheng | 2fdd8db | 2010-03-18 06:55:42 +0000 | [diff] [blame] | 18 | ; CHECK: addss |
Dan Gohman | f03f023 | 2010-04-17 16:29:15 +0000 | [diff] [blame] | 19 | ; CHECK: mulss LCPI0_3(%rip) |
Evan Cheng | 2fdd8db | 2010-03-18 06:55:42 +0000 | [diff] [blame] | 20 | ; CHECK: addss |
| 21 | ; CHECK: ret |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 22 | } |