[PATCH] D100284: [RISCV] Precommit a test case that test accessing a fixed object when has rvv vector object existed
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 11 22:29:48 PDT 2021
StephenFan created this revision.
StephenFan added reviewers: rogfer01, craig.topper, HsiangKai.
Herald added subscribers: vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb.
StephenFan requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100284
Files:
llvm/test/CodeGen/RISCV/rvv/localvar.ll
Index: llvm/test/CodeGen/RISCV/rvv/localvar.ll
===================================================================
--- llvm/test/CodeGen/RISCV/rvv/localvar.ll
+++ llvm/test/CodeGen/RISCV/rvv/localvar.ll
@@ -287,5 +287,23 @@
ret void
}
+define i64 @fixed_object(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7, i64 %8) nounwind {
+; RV64IV-LABEL: fixed_object:
+; RV64IV: # %bb.0:
+; RV64IV-NEXT: addi sp, sp, -16
+; RV64IV-NEXT: csrr a0, vlenb
+; RV64IV-NEXT: slli a0, a0, 3
+; RV64IV-NEXT: sub sp, sp, a0
+; RV64IV-NEXT: ld a0, 16(sp)
+; RV64IV-NEXT: csrr a1, vlenb
+; RV64IV-NEXT: slli a1, a1, 3
+; RV64IV-NEXT: add sp, sp, a1
+; RV64IV-NEXT: addi sp, sp, 16
+; RV64IV-NEXT: ret
+ %fixed_size = alloca i32
+ %rvv_vector = alloca <vscale x 8 x i64>, align 8
+ ret i64 %8
+}
+
declare void @notdead(i8*, <vscale x 16 x i8>*)
declare void @notdead2(i8*, i32*, <vscale x 16 x i8>*)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100284.336744.patch
Type: text/x-patch
Size: 942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210412/700e1623/attachment.bin>
More information about the llvm-commits
mailing list