blob: 3d52d0c9e7ed13049f838e9b9388dd7513b78010 [file] [log] [blame]
Dan Gohman8c89a502007-08-15 13:36:28 +00001; RUN: llvm-as < %s | llc -march=ppc32 | grep fmul | count 2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: llvm-as < %s | llc -march=ppc32 -enable-unsafe-fp-math | \
Dan Gohman8c89a502007-08-15 13:36:28 +00003; RUN: grep fmul | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
5define double @foo(double %X) {
6 %tmp1 = mul double %X, 1.23
7 %tmp2 = mul double %tmp1, 4.124
8 ret double %tmp2
9}
10