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/rvv-peephole-vmerge-vops.ll
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1215,3 +1215,17 @@ define <vscale x 2 x i32> @unfoldable_mismatched_sew(<vscale x 2 x i32> %passthr
1215
1215
)
1216
1216
ret <vscale x 2 x i32> %b
1217
1217
}
1218
+
1219
+
define <vscale x 2 x float> @commute_vfmadd(<vscale x 2 x float> %passthru, <vscale x 2 x float> %x, <vscale x 2 x float> %y, <vscale x 2 x i1> %mask, i32zeroext%evl) {
1220
+
; CHECK-LABEL: commute_vfmadd:
1221
+
; CHECK: # %bb.0:
1222
+
; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, ma
1223
+
; CHECK-NEXT: vfmadd.vv v9, v10, v8
1224
+
; CHECK-NEXT: vsetvli zero, zero, e32, m1, tu, ma
1225
+
; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
1226
+
; CHECK-NEXT: ret
1227
+
%fmul = fmul contract <vscale x 2 x float> %x, %y
1228
+
%fadd = fadd contract <vscale x 2 x float> %fmul, %passthru
1229
+
%merge = call <vscale x 2 x float> @llvm.vp.merge(<vscale x 2 x i1> %mask, <vscale x 2 x float> %fadd, <vscale x 2 x float> %passthru, i32%evl)
0 commit comments