This test passes on x86/Linux now.
[oota-llvm.git] / test / CodeGen / PowerPC / unsafe-math.ll
1 ; RUN: llvm-as < %s | llc -march=ppc32 | grep fmul | wc -l | grep 2 &&
2 ; RUN: llvm-as < %s | llc -march=ppc32 -enable-unsafe-fp-math | grep fmul | wc -l | grep 1
3
4 define double @foo(double %X) {
5         %tmp1 = mul double %X, 1.23
6         %tmp2 = mul double %tmp1, 4.124
7         ret double %tmp2
8 }
9