blob: ef19d72150a0d806f727666e96d3a89d3e8be655 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; PR1075
Dan Gohmanad1cc9c2009-12-07 19:04:31 +00002; RUN: llc < %s -mtriple=x86_64-apple-darwin -O3 | FileCheck %s
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Chris Lattner9e2f6412009-08-30 21:45:23 +00004define float @foo(float %x) nounwind {
Dan Gohman7ce405e2009-06-04 22:49:04 +00005 %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 Gohmanf17a25c2007-07-18 16:29:46 +000012 ret float %tmp14
Chris Lattner9e2f6412009-08-30 21:45:23 +000013
Dan Gohmanf03f0232010-04-17 16:29:15 +000014; CHECK: mulss LCPI0_0(%rip)
15; CHECK: mulss LCPI0_1(%rip)
Evan Cheng2fdd8db2010-03-18 06:55:42 +000016; CHECK: addss
Dan Gohmanf03f0232010-04-17 16:29:15 +000017; CHECK: mulss LCPI0_2(%rip)
Evan Cheng2fdd8db2010-03-18 06:55:42 +000018; CHECK: addss
Dan Gohmanf03f0232010-04-17 16:29:15 +000019; CHECK: mulss LCPI0_3(%rip)
Evan Cheng2fdd8db2010-03-18 06:55:42 +000020; CHECK: addss
21; CHECK: ret
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022}