diff --git a/llvm/lib/Target/VE/VERegisterInfo.td b/llvm/lib/Target/VE/VERegisterInfo.td --- a/llvm/lib/Target/VE/VERegisterInfo.td +++ b/llvm/lib/Target/VE/VERegisterInfo.td @@ -152,8 +152,10 @@ def VM#I : VEMaskReg, 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("VM"#!shl(I,1)), !cast("VM"#!add(!shl(I,1),1))],