blob: 3b365f35cb22104c2585338478802744490e79c9 [file] [log] [blame]
Chris Lattner857a35d2007-01-09 00:31:52 +00001; PR1075
Reid Spencerd3b1f6d2007-04-15 22:20:47 +00002; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | \
Evan Cheng347d39f2007-10-14 05:57:21 +00003; RUN: %prcontext {mulss LCPI1_3} 1 | grep mulss | count 1
Evan Chengb17ef452007-01-08 23:58:27 +00004
Reid Spencere3ff5ad2007-01-26 08:25:06 +00005define float @foo(float %x) {
Dan Gohmanae3a0be2009-06-04 22:49:04 +00006 %tmp1 = fmul float %x, 3.000000e+00
7 %tmp3 = fmul float %x, 5.000000e+00
8 %tmp5 = fmul float %x, 7.000000e+00
9 %tmp7 = fmul float %x, 1.100000e+01
10 %tmp10 = fadd float %tmp1, %tmp3
11 %tmp12 = fadd float %tmp10, %tmp5
12 %tmp14 = fadd float %tmp12, %tmp7
Evan Chengb17ef452007-01-08 23:58:27 +000013 ret float %tmp14
14}