@@ -7,9 +7,9 @@ define float @fma_from_freeze_mul_add_left(float %x, float %y) {
7
7
; CHECK-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
8
8
; CHECK-NEXT: v_fma_f32 v0, v0, v1, 1.0
9
9
; CHECK-NEXT: s_setpc_b64 s[30:31]
10
- %mul = fmul reassoc nsz arcp contract afn float %x , %y
10
+ %mul = fmul contract float %x , %y
11
11
%mul.fr = freeze float %mul
12
- %add = fadd reassoc nsz arcp contract afn float %mul.fr , 1 .000000e+00
12
+ %add = fadd contract float %mul.fr , 1 .000000e+00
13
13
ret float %add
14
14
}
15
15
@@ -21,9 +21,9 @@ define float @fma_from_freeze_mul_add_left_with_nnan(float %x, float %y) {
21
21
; CHECK-NEXT: s_delay_alu instid0(VALU_DEP_1)
22
22
; CHECK-NEXT: v_add_f32_e32 v0, 1.0, v0
23
23
; CHECK-NEXT: s_setpc_b64 s[30:31]
24
- %mul = fmul reassoc nnan nsz arcp contract afn float %x , %y
24
+ %mul = fmul nnan contract afn float %x , %y
25
25
%mul.fr = freeze float %mul
26
- %add = fadd reassoc nnan nsz arcp contract afn float %mul.fr , 1 .000000e+00
26
+ %add = fadd nnan contract float %mul.fr , 1 .000000e+00
27
27
ret float %add
28
28
}
29
29
@@ -33,9 +33,9 @@ define float @fma_from_freeze_mul_add_right(float %x, float %y) {
33
33
; CHECK-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
34
34
; CHECK-NEXT: v_fma_f32 v0, v0, v1, 1.0
35
35
; CHECK-NEXT: s_setpc_b64 s[30:31]
36
- %mul = fmul reassoc nsz arcp contract afn float %x , %y
36
+ %mul = fmul contract float %x , %y
37
37
%mul.fr = freeze float %mul
38
- %add = fadd reassoc nsz arcp contract afn float 1 .000000e+00 , %mul.fr
38
+ %add = fadd contract float 1 .000000e+00 , %mul.fr
39
39
ret float %add
40
40
}
41
41
@@ -47,9 +47,9 @@ define float @fma_from_freeze_mul_add_right_with_nnan(float %x, float %y) {
47
47
; CHECK-NEXT: s_delay_alu instid0(VALU_DEP_1)
48
48
; CHECK-NEXT: v_add_f32_e32 v0, 1.0, v0
49
49
; CHECK-NEXT: s_setpc_b64 s[30:31]
50
- %mul = fmul reassoc nnan nsz arcp contract afn float %x , %y
50
+ %mul = fmul nnan contract float %x , %y
51
51
%mul.fr = freeze float %mul
52
- %add = fadd reassoc nnan nsz arcp contract afn float 1 .000000e+00 , %mul.fr
52
+ %add = fadd nnan contract float 1 .000000e+00 , %mul.fr
53
53
ret float %add
54
54
}
55
55
@@ -59,9 +59,9 @@ define float @fma_from_freeze_mul_sub_left(float %x, float %y) {
59
59
; CHECK-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
60
60
; CHECK-NEXT: v_fma_f32 v0, v0, v1, -1.0
61
61
; CHECK-NEXT: s_setpc_b64 s[30:31]
62
- %mul = fmul reassoc nsz arcp contract afn float %x , %y
62
+ %mul = fmul contract float %x , %y
63
63
%mul.fr = freeze float %mul
64
- %sub = fsub reassoc nsz arcp contract afn float %mul.fr , 1 .000000e+00
64
+ %sub = fsub contract float %mul.fr , 1 .000000e+00
65
65
ret float %sub
66
66
}
67
67
@@ -73,9 +73,9 @@ define float @fma_from_freeze_mul_sub_left_with_nnan(float %x, float %y) {
73
73
; CHECK-NEXT: s_delay_alu instid0(VALU_DEP_1)
74
74
; CHECK-NEXT: v_add_f32_e32 v0, -1.0, v0
75
75
; CHECK-NEXT: s_setpc_b64 s[30:31]
76
- %mul = fmul reassoc nnan nsz arcp contract afn float %x , %y
76
+ %mul = fmul nnan contract float %x , %y
77
77
%mul.fr = freeze float %mul
78
- %sub = fsub reassoc nnan nsz arcp contract afn float %mul.fr , 1 .000000e+00
78
+ %sub = fsub nnan contract float %mul.fr , 1 .000000e+00
79
79
ret float %sub
80
80
}
81
81
@@ -85,9 +85,9 @@ define float @fma_from_freeze_mul_sub_right(float %x, float %y) {
85
85
; CHECK-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
86
86
; CHECK-NEXT: v_fma_f32 v0, -v0, v1, 1.0
87
87
; CHECK-NEXT: s_setpc_b64 s[30:31]
88
- %mul = fmul reassoc nsz arcp contract afn float %x , %y
88
+ %mul = fmul contract float %x , %y
89
89
%mul.fr = freeze float %mul
90
- %sub = fsub reassoc nsz arcp contract afn float 1 .000000e+00 , %mul.fr
90
+ %sub = fsub contract float 1 .000000e+00 , %mul.fr
91
91
ret float %sub
92
92
}
93
93
@@ -99,8 +99,8 @@ define float @fma_from_freeze_mul_sub_right_with_nnan(float %x, float %y) {
99
99
; CHECK-NEXT: s_delay_alu instid0(VALU_DEP_1)
100
100
; CHECK-NEXT: v_sub_f32_e32 v0, 1.0, v0
101
101
; CHECK-NEXT: s_setpc_b64 s[30:31]
102
- %mul = fmul reassoc nnan nsz arcp contract afn float %x , %y
102
+ %mul = fmul nnan contract float %x , %y
103
103
%mul.fr = freeze float %mul
104
- %sub = fsub reassoc nnan nsz arcp contract afn float 1 .000000e+00 , %mul.fr
104
+ %sub = fsub nnan contract float 1 .000000e+00 , %mul.fr
105
105
ret float %sub
106
106
}
0 commit comments