[llvm] 99c1acf - [RISCV] Add precommit test for select vl op that equal to ~0.
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 10 18:55:17 PST 2022
Author: jacquesguan
Date: 2022-01-11T10:54:50+08:00
New Revision: 99c1acf3f1df46fea196f57fe2e145792fa5084d
URL: https://github.com/llvm/llvm-project/commit/99c1acf3f1df46fea196f57fe2e145792fa5084d
DIFF: https://github.com/llvm/llvm-project/commit/99c1acf3f1df46fea196f57fe2e145792fa5084d.diff
LOG: [RISCV] Add precommit test for select vl op that equal to ~0.
Precommit test for D116798
Differential Revision: https://reviews.llvm.org/D116799
Added:
Modified:
llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll b/llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll
index c8c50ac8dca9..c7c9bcf0543c 100644
--- a/llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll
+++ b/llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll
@@ -239,6 +239,21 @@ entry:
ret <vscale x 1 x double> %y
}
+define <vscale x 1 x double> @test13(<vscale x 1 x double> %a, <vscale x 1 x double> %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 <vscale x 1 x double> @llvm.riscv.vfadd.nxv1f64.nxv1f64(
+ <vscale x 1 x double> %a,
+ <vscale x 1 x double> %b,
+ i64 -1)
+ ret <vscale x 1 x double> %0
+}
+
declare <vscale x 1 x i64> @llvm.riscv.vadd.mask.nxv1i64.nxv1i64(
<vscale x 1 x i64>,
<vscale x 1 x i64>,
More information about the llvm-commits
mailing list