Skip to content

Commit

Permalink
[RISCV] Use DwarfRegAlias instead of DwarfRegNum for 32-bit and 64-bi…
Browse files Browse the repository at this point in the history
…t FP registers.

There should only be one register that specifies a particular
DwarfRegNum.
  • Loading branch information
topperc committed Aug 30, 2024
1 parent 5013cf6 commit 02eb03d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/RISCV/RISCVRegisterInfo.td
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ let RegAltNameIndices = [ABIRegAltName] in {

foreach Index = 0-31 in {
def F#Index#_F : RISCVReg32<!cast<RISCVReg16>("F"#Index#"_H")>,
DwarfRegNum<[!add(Index, 32)]>;
DwarfRegAlias<!cast<Register>("F"#Index#"_H")>;
}

foreach Index = 0-31 in {
def F#Index#_D : RISCVReg64<!cast<RISCVReg32>("F"#Index#"_F")>,
DwarfRegNum<[!add(Index, 32)]>;
DwarfRegAlias<!cast<Register>("F"#Index#"_H")>;
}
}

Expand Down

0 comments on commit 02eb03d

Please sign in to comment.