Tighten the conditions under which we do PRE, remove some unneeded code, and correct...
[oota-llvm.git] / test / CodeGen / PowerPC / unsafe-math.ll
1 ; RUN: llvm-as < %s | llc -march=ppc32 | grep fmul | count 2
2 ; RUN: llvm-as < %s | llc -march=ppc32 -enable-unsafe-fp-math | \
3 ; RUN:   grep fmul | count 1
4
5 define double @foo(double %X) {
6         %tmp1 = mul double %X, 1.23
7         %tmp2 = mul double %tmp1, 4.124
8         ret double %tmp2
9 }
10