Skip to content

Commit 488ea4d

Browse files
syzaaraAlexisPerry
authored andcommitted
[PPC] Add DwarfRegAlias for VSRPair (llvm#95837)
Add DwarfRegAlias for VSRPair as it shares dwarfRegNum with the VR registers.
1 parent 4411a03 commit 488ea4d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/lib/Target/PowerPC/PPCRegisterInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ let SubRegIndices = [sub_vsx0, sub_vsx1] in {
199199
def VSRp#!add(!srl(Index, 1), 16) :
200200
VSRPair<!add(!srl(Index, 1), 16), "vsp"#!add(Index, 32),
201201
[!cast<VR>("V"#Index), !cast<VR>("V"#!add(Index, 1))]>,
202-
DwarfRegNum<[-1, -1]>;
202+
DwarfRegAlias<!cast<VR>("V"#Index)>;
203203
}
204204
}
205205

llvm/test/CodeGen/PowerPC/ppc64-anyregcc.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
; RUN: llc -verify-machineinstrs < %s | FileCheck %s
2+
; RUN: llc -mcpu=pwr10 -verify-machineinstrs < %s | FileCheck %s
23
target datalayout = "E-m:e-i64:64-n32:64"
34
target triple = "powerpc64-unknown-linux-gnu"
45

0 commit comments

Comments
 (0)