[llvm] 3de9707 - [RISCV][NFC] Precommit test cases for D120963.

Zakk Chen via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 5 06:31:48 PST 2022


Author: Zakk Chen
Date: 2022-03-05T06:10:25-08:00
New Revision: 3de970718c92a19ecac11e0150a8b2c7451b35eb

URL: https://github.com/llvm/llvm-project/commit/3de970718c92a19ecac11e0150a8b2c7451b35eb
DIFF: https://github.com/llvm/llvm-project/commit/3de970718c92a19ecac11e0150a8b2c7451b35eb.diff

LOG: [RISCV][NFC] Precommit test cases for D120963.

Added: 
    

Modified: 
    llvm/test/CodeGen/RISCV/rvv/vmv.s.x-rv64.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/RISCV/rvv/vmv.s.x-rv64.ll b/llvm/test/CodeGen/RISCV/rvv/vmv.s.x-rv64.ll
index f324d4a45e474..3472a83e0ff4f 100644
--- a/llvm/test/CodeGen/RISCV/rvv/vmv.s.x-rv64.ll
+++ b/llvm/test/CodeGen/RISCV/rvv/vmv.s.x-rv64.ll
@@ -286,3 +286,16 @@ entry:
   %a = call <vscale x 8 x i64> @llvm.riscv.vmv.s.x.nxv8i64(<vscale x 8 x i64> %0, i64 %1, i64 %2)
   ret <vscale x 8 x i64> %a
 }
+
+; We should not emit a tail agnostic vlse for a tail undisturbed vmv.s.x
+define <vscale x 1 x i64> @intrinsic_vmv.s.x_x_nxv1i64_bug(<vscale x 1 x i64> %0, i64* %1) nounwind {
+; CHECK-LABEL: intrinsic_vmv.s.x_x_nxv1i64_bug:
+; CHECK:       # %bb.0: # %entry
+; CHECK-NEXT:    vsetivli zero, 1, e64, m1, ta, mu
+; CHECK-NEXT:    vlse64.v v8, (a0), zero
+; CHECK-NEXT:    ret
+entry:
+  %a = load i64, i64* %1, align 8
+  %b = call <vscale x 1 x i64> @llvm.riscv.vmv.s.x.nxv1i64(<vscale x 1 x i64> %0, i64 %a, i64 1)
+  ret <vscale x 1 x i64> %b
+}


        


More information about the llvm-commits mailing list