blob: 24aa5b98d0bb8c8c9c3e39c4e359ff0925e43d52 [file] [log] [blame]
Chris Lattner857a35d2007-01-09 00:31:52 +00001; PR1075
Andrew Trick922d3142012-02-01 23:20:51 +00002; RUN: llc < %s -mcpu=generic -mtriple=x86_64-apple-darwin -O3 | FileCheck %s
Evan Chengb17ef452007-01-08 23:58:27 +00003
Chris Lattner251829e2009-08-30 21:45:23 +00004define float @foo(float %x) nounwind {
Dan Gohmanae3a0be2009-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
Evan Chengb17ef452007-01-08 23:58:27 +000012 ret float %tmp14
Chris Lattner251829e2009-08-30 21:45:23 +000013
Dan Gohman584fedf2010-06-21 22:17:20 +000014; CHECK: mulss
15; CHECK: mulss
Evan Chengbdc652b2010-03-18 06:55:42 +000016; CHECK: addss
Dan Gohman584fedf2010-06-21 22:17:20 +000017; CHECK: mulss
Evan Chengbdc652b2010-03-18 06:55:42 +000018; CHECK: addss
Dan Gohman584fedf2010-06-21 22:17:20 +000019; CHECK: mulss
Evan Chengbdc652b2010-03-18 06:55:42 +000020; CHECK: addss
21; CHECK: ret
Evan Chengb17ef452007-01-08 23:58:27 +000022}