blob: 800eec2a431a8c958d53135b0c43984906b3fa1c [file] [log] [blame]
Evan Chengfd842082007-01-09 00:09:34 +00001; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | \
Evan Chengb17ef452007-01-08 23:58:27 +00002; RUN: %prcontext 'mulss LCPI1_3' 1 | grep mulss | wc -l | grep 1
Chris Lattner857a35d2007-01-09 00:31:52 +00003; PR1075
Evan Chengb17ef452007-01-08 23:58:27 +00004
5define float %foo(float %x) {
6 %tmp1 = mul float %x, 3.000000e+00
7 %tmp3 = mul float %x, 5.000000e+00
8 %tmp5 = mul float %x, 7.000000e+00
9 %tmp7 = mul float %x, 1.100000e+01
10 %tmp10 = add float %tmp1, %tmp3
11 %tmp12 = add float %tmp10, %tmp5
12 %tmp14 = add float %tmp12, %tmp7
13 ret float %tmp14
14}