You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llvm/test/CodeGen/AArch64/sve-fp-combine.ll
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1134,10 +1134,9 @@ define <vscale x 2 x double> @fadd_sel_fmul_d_negzero(<vscale x 2 x double> %a,
1134
1134
define <vscale x 8 x half> @fsub_sel_fmul_h_negzero(<vscale x 8 x half> %a, <vscale x 8 x half> %b, <vscale x 8 x half> %c, <vscale x 8 x i1> %mask) {
1135
1135
; CHECK-LABEL: fsub_sel_fmul_h_negzero:
1136
1136
; CHECK: // %bb.0:
1137
-
; CHECK-NEXT: mov w8, #32768 // =0x8000
1137
+
; CHECK-NEXT: dupm z3.h, #0x8000
1138
1138
; CHECK-NEXT: fmul z1.h, z1.h, z2.h
1139
-
; CHECK-NEXT: mov z2.h, w8
1140
-
; CHECK-NEXT: sel z1.h, p0, z1.h, z2.h
1139
+
; CHECK-NEXT: sel z1.h, p0, z1.h, z3.h
1141
1140
; CHECK-NEXT: fsub z0.h, z0.h, z1.h
1142
1141
; CHECK-NEXT: ret
1143
1142
%fmul = fmul <vscale x 8 x half> %b, %c
@@ -1150,10 +1149,9 @@ define <vscale x 8 x half> @fsub_sel_fmul_h_negzero(<vscale x 8 x half> %a, <vsc
1150
1149
define <vscale x 4 x float> @fsub_sel_fmul_s_negzero(<vscale x 4 x float> %a, <vscale x 4 x float> %b, <vscale x 4 x float> %c, <vscale x 4 x i1> %mask) {
1151
1150
; CHECK-LABEL: fsub_sel_fmul_s_negzero:
1152
1151
; CHECK: // %bb.0:
1153
-
; CHECK-NEXT: mov w8, #-2147483648 // =0x80000000
1152
+
; CHECK-NEXT: mov z3.s, #0x80000000
1154
1153
; CHECK-NEXT: fmul z1.s, z1.s, z2.s
1155
-
; CHECK-NEXT: mov z2.s, w8
1156
-
; CHECK-NEXT: sel z1.s, p0, z1.s, z2.s
1154
+
; CHECK-NEXT: sel z1.s, p0, z1.s, z3.s
1157
1155
; CHECK-NEXT: fsub z0.s, z0.s, z1.s
1158
1156
; CHECK-NEXT: ret
1159
1157
%fmul = fmul <vscale x 4 x float> %b, %c
@@ -1166,10 +1164,9 @@ define <vscale x 4 x float> @fsub_sel_fmul_s_negzero(<vscale x 4 x float> %a, <v
1166
1164
define <vscale x 2 x double> @fsub_sel_fmul_d_negzero(<vscale x 2 x double> %a, <vscale x 2 x double> %b, <vscale x 2 x double> %c, <vscale x 2 x i1> %mask) {
0 commit comments