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/vmv.v.v-peephole.ll
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -245,3 +245,16 @@ define <vscale x 1 x i64> @vmerge(<vscale x 1 x i64> %passthru, <vscale x 1 x i6
245
245
%b = call <vscale x 1 x i64> @llvm.riscv.vmv.v.v.nxv1i64(<vscale x 1 x i64> %passthru, <vscale x 1 x i64> %a, iXLen %avl)
246
246
ret <vscale x 1 x i64> %b
247
247
}
248
+
249
+
define <vscale x 4 x float> @commute_vfmadd(<vscale x 4 x float> %passthru, <vscale x 4 x float> %a, <vscale x 4 x float> %b, iXLen %vl) {
250
+
; CHECK-LABEL: commute_vfmadd:
251
+
; CHECK: # %bb.0:
252
+
; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, ma
253
+
; CHECK-NEXT: vfmadd.vv v10, v12, v8
254
+
; CHECK-NEXT: vsetvli zero, zero, e32, m2, tu, ma
255
+
; CHECK-NEXT: vmv.v.v v8, v10
256
+
; CHECK-NEXT: ret
257
+
%v = call <vscale x 4 x float> @llvm.riscv.vfmadd(<vscale x 4 x float> %a, <vscale x 4 x float> %b, <vscale x 4 x float> %passthru, iXLen 7, iXLen %vl, iXLen 3)
258
+
%w = call <vscale x 4 x float> @llvm.riscv.vmv.v.v(<vscale x 4 x float> %passthru, <vscale x 4 x float> %v, iXLen %vl)
0 commit comments