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/RISCV/rvv/vl-opt-instrs.ll
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1290,6 +1290,27 @@ define <vscale x 4 x i32> @vmacc_vv(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b
1290
1290
ret <vscale x 4 x i32> %2
1291
1291
}
1292
1292
1293
+
define <vscale x 4 x i32> @vmacc_vv_use(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b, iXLen %vl) {
1294
+
; NOVLOPT-LABEL: vmacc_vv_use:
1295
+
; NOVLOPT: # %bb.0:
1296
+
; NOVLOPT-NEXT: vsetvli a1, zero, e32, m2, ta, ma
1297
+
; NOVLOPT-NEXT: vmul.vv v12, v8, v10
1298
+
; NOVLOPT-NEXT: vsetvli zero, a0, e32, m2, tu, ma
1299
+
; NOVLOPT-NEXT: vmacc.vv v8, v12, v10
1300
+
; NOVLOPT-NEXT: ret
1301
+
;
1302
+
; VLOPT-LABEL: vmacc_vv_use:
1303
+
; VLOPT: # %bb.0:
1304
+
; VLOPT-NEXT: vsetvli zero, a0, e32, m2, ta, ma
1305
+
; VLOPT-NEXT: vmul.vv v12, v8, v10
1306
+
; VLOPT-NEXT: vsetvli zero, zero, e32, m2, tu, ma
1307
+
; VLOPT-NEXT: vmacc.vv v8, v12, v10
1308
+
; VLOPT-NEXT: ret
1309
+
%1 = call <vscale x 4 x i32> @llvm.riscv.vmul.nxv4i32.nxv4i32(<vscale x 4 x i32> poison, <vscale x 4 x i32> %a, <vscale x 4 x i32> %b, iXLen -1)
1310
+
%2 = call <vscale x 4 x i32> @llvm.riscv.vmacc.nxv4i32.nxv4i32(<vscale x 4 x i32> %a, <vscale x 4 x i32> %1, <vscale x 4 x i32> %b, iXLen %vl, iXLen 0)
1311
+
ret <vscale x 4 x i32> %2
1312
+
}
1313
+
1293
1314
define <vscale x 4 x i32> @vmacc_vx(<vscale x 4 x i32> %a, i32%b, iXLen %vl) {
0 commit comments