1 ; RUN: llvm-as < %s | llc -march=ppc32 | \
2 ; RUN: egrep {fn?madd|fn?msub} | count 8
4 define double @test_FMADD1(double %A, double %B, double %C) {
5 %D = mul double %A, %B ; <double> [#uses=1]
6 %E = add double %D, %C ; <double> [#uses=1]
10 define double @test_FMADD2(double %A, double %B, double %C) {
11 %D = mul double %A, %B ; <double> [#uses=1]
12 %E = add double %D, %C ; <double> [#uses=1]
16 define double @test_FMSUB(double %A, double %B, double %C) {
17 %D = mul double %A, %B ; <double> [#uses=1]
18 %E = sub double %D, %C ; <double> [#uses=1]
22 define double @test_FNMADD1(double %A, double %B, double %C) {
23 %D = mul double %A, %B ; <double> [#uses=1]
24 %E = add double %D, %C ; <double> [#uses=1]
25 %F = sub double -0.000000e+00, %E ; <double> [#uses=1]
29 define double @test_FNMADD2(double %A, double %B, double %C) {
30 %D = mul double %A, %B ; <double> [#uses=1]
31 %E = add double %C, %D ; <double> [#uses=1]
32 %F = sub double -0.000000e+00, %E ; <double> [#uses=1]
36 define double @test_FNMSUB1(double %A, double %B, double %C) {
37 %D = mul double %A, %B ; <double> [#uses=1]
38 %E = sub double %C, %D ; <double> [#uses=1]
42 define double @test_FNMSUB2(double %A, double %B, double %C) {
43 %D = mul double %A, %B ; <double> [#uses=1]
44 %E = sub double %D, %C ; <double> [#uses=1]
45 %F = sub double -0.000000e+00, %E ; <double> [#uses=1]
49 define float @test_FNMSUBS(float %A, float %B, float %C) {
50 %D = mul float %A, %B ; <float> [#uses=1]
51 %E = sub float %D, %C ; <float> [#uses=1]
52 %F = sub float -0.000000e+00, %E ; <float> [#uses=1]