[PATCH] D120054: [VE] Fix vmp0 subregister mapping
Simon Moll via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 17 06:54:25 PST 2022
simoll created this revision.
simoll added a reviewer: kaz7.
simoll added a project: VE.
Herald added a subscriber: hiraditya.
simoll requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
vmp0 is the all-ones v512i1 register and does not break down into subregisters.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120054
Files:
llvm/lib/Target/VE/VERegisterInfo.td
Index: llvm/lib/Target/VE/VERegisterInfo.td
===================================================================
--- llvm/lib/Target/VE/VERegisterInfo.td
+++ llvm/lib/Target/VE/VERegisterInfo.td
@@ -152,8 +152,10 @@
def VM#I : VEMaskReg<I, "vm"#I, [], ["vm"#I]>, DwarfRegNum<[!add(128,I)]>;
// Aliases of VMs to use as a pair of two VM for packed instructions
+def VMP0 : VEMaskReg<0, "vm0", [], ["vm0"]>;
+
let SubRegIndices = [sub_vm_even, sub_vm_odd], CoveredBySubRegs = 1 in
-foreach I = 0-7 in
+foreach I = 1-7 in
def VMP#I : VEMaskReg<!shl(I,1), "vmp"#I,
[!cast<VEMaskReg>("VM"#!shl(I,1)),
!cast<VEMaskReg>("VM"#!add(!shl(I,1),1))],
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120054.409634.patch
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220217/12170d8c/attachment.bin>
More information about the llvm-commits
mailing list