diff --git a/llvm/lib/Target/RISCV/RISCVRegisterInfo.td b/llvm/lib/Target/RISCV/RISCVRegisterInfo.td --- a/llvm/lib/Target/RISCV/RISCVRegisterInfo.td +++ b/llvm/lib/Target/RISCV/RISCVRegisterInfo.td @@ -411,7 +411,7 @@ // Vector registers let RegAltNameIndices = [ABIRegAltName] in { foreach Index = 0-31 in { - def V#Index : RISCVReg, DwarfRegNum<[!add(Index, 64)]>; + def V#Index : RISCVReg, DwarfRegNum<[!add(Index, 96)]>; } foreach Index = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22,