@@ -25,8 +25,7 @@ define float @fmul(float %x) {
2525define float @fmul_reassoc (float %x ) {
2626; CHECK-LABEL: define float @fmul_reassoc(
2727; CHECK-SAME: float [[X:%.*]]) {
28- ; CHECK-NEXT: [[FMUL0:%.*]] = fmul reassoc float [[X]], 2.000000e+00
29- ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc float [[FMUL0]], 4.000000e+00
28+ ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc float [[X]], 8.000000e+00
3029; CHECK-NEXT: ret float [[FMUL1]]
3130;
3231 %fmul0 = fmul reassoc float %x , 2 .0
@@ -37,8 +36,7 @@ define float @fmul_reassoc(float %x) {
3736define <2 x float > @fmul_reassoc_v2 (<2 x float > %x ) {
3837; CHECK-LABEL: define <2 x float> @fmul_reassoc_v2(
3938; CHECK-SAME: <2 x float> [[X:%.*]]) {
40- ; CHECK-NEXT: [[FMUL0:%.*]] = fmul reassoc <2 x float> [[X]], splat (float 2.000000e+00)
41- ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc <2 x float> [[FMUL0]], splat (float 4.000000e+00)
39+ ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc <2 x float> [[X]], splat (float 8.000000e+00)
4240; CHECK-NEXT: ret <2 x float> [[FMUL1]]
4341;
4442 %fmul0 = fmul reassoc <2 x float > %x , splat (float 2 .0 )
@@ -54,8 +52,7 @@ define <2 x float> @fmul_reassoc_v2(<2 x float> %x) {
5452define float @fmul_reassoc_negative_0 (float %x ) {
5553; CHECK-LABEL: define float @fmul_reassoc_negative_0(
5654; CHECK-SAME: float [[X:%.*]]) {
57- ; CHECK-NEXT: [[FMUL0:%.*]] = fmul reassoc float [[X]], 2.000000e+00
58- ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc float [[FMUL0]], -4.000000e+00
55+ ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc float [[X]], -8.000000e+00
5956; CHECK-NEXT: ret float [[FMUL1]]
6057;
6158 %fmul0 = fmul reassoc float %x , 2 .0
@@ -71,8 +68,7 @@ define float @fmul_reassoc_negative_0(float %x) {
7168define float @fmul_reassoc_negative_1 (float %x ) {
7269; CHECK-LABEL: define float @fmul_reassoc_negative_1(
7370; CHECK-SAME: float [[X:%.*]]) {
74- ; CHECK-NEXT: [[FMUL0:%.*]] = fmul reassoc float [[X]], -2.000000e+00
75- ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc float [[FMUL0]], 4.000000e+00
71+ ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc float [[X]], -8.000000e+00
7672; CHECK-NEXT: ret float [[FMUL1]]
7773;
7874 %fmul0 = fmul reassoc float %x , -2 .0
@@ -95,8 +91,7 @@ define float @fmul_reassoc_nsz(float %x) {
9591define float @fmul_reassoc_posk_neg0 (float %x ) {
9692; CHECK-LABEL: define float @fmul_reassoc_posk_neg0(
9793; CHECK-SAME: float [[X:%.*]]) {
98- ; CHECK-NEXT: [[FMUL0:%.*]] = fmul reassoc float [[X]], 4.000000e+00
99- ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc float [[FMUL0]], -0.000000e+00
94+ ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc float [[X]], -0.000000e+00
10095; CHECK-NEXT: ret float [[FMUL1]]
10196;
10297 %fmul0 = fmul reassoc float %x , 4 .0
@@ -108,8 +103,7 @@ define float @fmul_reassoc_neg0_posk(float %x) {
108103; CHECK-LABEL: define float @fmul_reassoc_neg0_posk(
109104; CHECK-SAME: float [[X:%.*]]) {
110105; CHECK-NEXT: [[FMUL0:%.*]] = fmul reassoc float [[X]], -0.000000e+00
111- ; CHECK-NEXT: [[FMUL1:%.*]] = fmul reassoc float [[FMUL0]], 4.000000e+00
112- ; CHECK-NEXT: ret float [[FMUL1]]
106+ ; CHECK-NEXT: ret float [[FMUL0]]
113107;
114108 %fmul0 = fmul reassoc float %x , -0 .0
115109 %fmul1 = fmul reassoc float %fmul0 , 4 .0
0 commit comments