xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/unsafe-math.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mattr=-vsx -march=ppc32 | grep fmul | count 2
2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mattr=-vsx -march=ppc32 -enable-unsafe-fp-math | \
3*9880d681SAndroid Build Coastguard Worker; RUN:   grep fmul | count 1
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine double @foo(double %X) nounwind {
6*9880d681SAndroid Build Coastguard Worker        %tmp1 = fmul double %X, 1.23
7*9880d681SAndroid Build Coastguard Worker        %tmp2 = fmul double %tmp1, 4.124
8*9880d681SAndroid Build Coastguard Worker        ret double %tmp2
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11