[llvm] cf3654c - [RISCV] Add test coverage for 64 bit splat constants
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 19 14:43:44 PDT 2022
Author: Philip Reames
Date: 2022-08-19T14:43:35-07:00
New Revision: cf3654ccc66605b41be7eb14a06877e54955acff
URL: https://github.com/llvm/llvm-project/commit/cf3654ccc66605b41be7eb14a06877e54955acff
DIFF: https://github.com/llvm/llvm-project/commit/cf3654ccc66605b41be7eb14a06877e54955acff.diff
LOG: [RISCV] Add test coverage for 64 bit splat constants
Added:
Modified:
llvm/test/Analysis/CostModel/RISCV/rvv-load-store.ll
Removed:
################################################################################
diff --git a/llvm/test/Analysis/CostModel/RISCV/rvv-load-store.ll b/llvm/test/Analysis/CostModel/RISCV/rvv-load-store.ll
index 5bede7f70b40..c3b43935281a 100644
--- a/llvm/test/Analysis/CostModel/RISCV/rvv-load-store.ll
+++ b/llvm/test/Analysis/CostModel/RISCV/rvv-load-store.ll
@@ -296,7 +296,9 @@ define void @store_of_constant(ptr %p) {
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: store <4 x i32> poison, ptr %p, align 16
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: store <4 x i32> undef, ptr %p, align 16
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: store <4 x i32> zeroinitializer, ptr %p, align 16
+; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: store <4 x i64> zeroinitializer, ptr %p, align 32
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %p, align 16
+; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: store <4 x i64> <i64 1, i64 1, i64 1, i64 1>, ptr %p, align 32
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: store <4 x i32> <i32 4096, i32 4096, i32 4096, i32 4096>, ptr %p, align 16
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: store <4 x i32> <i32 1, i32 1, i32 2, i32 1>, ptr %p, align 16
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: store <4 x i32> <i32 2, i32 1, i32 1, i32 1>, ptr %p, align 16
@@ -315,7 +317,9 @@ define void @store_of_constant(ptr %p) {
; Various splats
store <4 x i32> zeroinitializer, ptr %p
+ store <4 x i64> zeroinitializer, ptr %p
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %p
+ store <4 x i64> <i64 1, i64 1, i64 1, i64 1>, ptr %p
store <4 x i32> <i32 4096, i32 4096, i32 4096, i32 4096>, ptr %p
; Nearly splats
More information about the llvm-commits
mailing list