blob: ef9791277dcd1688e61dc117618012e56968ff61 [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 | grep fmul | count 2
2; RUN: llc < %s -march=ppc32 -enable-unsafe-fp-math | \
Dan Gohmanf9dd1702007-08-15 13:36:28 +00003; RUN: grep fmul | count 1
Chris Lattner8b574a72007-01-08 23:03:19 +00004
Reid Spencerce380562007-01-26 08:25:06 +00005define double @foo(double %X) {
Dan Gohmana5b96452009-06-04 22:49:04 +00006 %tmp1 = fmul double %X, 1.23
7 %tmp2 = fmul double %tmp1, 4.124
Chris Lattner8b574a72007-01-08 23:03:19 +00008 ret double %tmp2
9}
10