Skip to content

Commit 02eb03d

Browse files
committed
[RISCV] Use DwarfRegAlias instead of DwarfRegNum for 32-bit and 64-bit FP registers.
There should only be one register that specifies a particular DwarfRegNum.
1 parent 5013cf6 commit 02eb03d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVRegisterInfo.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ let RegAltNameIndices = [ABIRegAltName] in {
234234

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

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

0 commit comments

Comments
 (0)