diff --git a/llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll b/llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll --- a/llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll +++ b/llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll @@ -239,6 +239,21 @@ ret %y } +define @test13( %a, %b) nounwind { +; CHECK-LABEL: test13: +; CHECK: # %bb.0: # %entry +; CHECK-NEXT: li a0, -1 +; CHECK-NEXT: vsetvli zero, a0, e64, m1, ta, mu +; CHECK-NEXT: vfadd.vv v8, v8, v9 +; CHECK-NEXT: ret +entry: + %0 = tail call @llvm.riscv.vfadd.nxv1f64.nxv1f64( + %a, + %b, + i64 -1) + ret %0 +} + declare @llvm.riscv.vadd.mask.nxv1i64.nxv1i64( , ,