[PPC] Adjust some PowerPC tests to account for presence/absence of VSX
[oota-llvm.git] / test / CodeGen / PowerPC / unsafe-math.ll
1 ; RUN: llc < %s -mattr=-vsx -march=ppc32 | grep fmul | count 2
2 ; RUN: llc < %s -mattr=-vsx -march=ppc32 -enable-unsafe-fp-math | \
3 ; RUN:   grep fmul | count 1
4 ; RUN: llc < %s -mattr=+vsx -march=ppc32 | grep xsmuldp | count 2
5 ; RUN: llc < %s -mattr=+vsx -march=ppc32 -enable-unsafe-fp-math | \
6 ; RUN:   grep xsmuldp | count 1
7
8 define double @foo(double %X) nounwind {
9         %tmp1 = fmul double %X, 1.23
10         %tmp2 = fmul double %tmp1, 4.124
11         ret double %tmp2
12 }
13