blob: b0bdcc28d28e243ab4d0f42a0884fd5251b9f6df [file] [log] [blame]
Dan Gohmanfce288f2009-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 Gohman28beeea2007-08-15 13:36:28 +00003; RUN: grep fmul | count 1
Chris Lattnercc781562007-01-08 23:03:19 +00004
Chris Lattner261bc892010-11-14 22:22:14 +00005define double @foo(double %X) nounwind {
Dan Gohmanae3a0be2009-06-04 22:49:04 +00006 %tmp1 = fmul double %X, 1.23
7 %tmp2 = fmul double %tmp1, 4.124
Chris Lattnercc781562007-01-08 23:03:19 +00008 ret double %tmp2
9}
10