Skip to content

Commit d1b6ce5

Browse files
authored
[AMDGPU] gfx1250 has fixed GETPC bug and also extended VA to 57 bits (#152373)
1 parent 5a47a18 commit d1b6ce5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/AMDGPU/GCNSubtarget.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,8 +1566,9 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
15661566
bool hasSetPrioIncWgInst() const { return HasSetPrioIncWgInst; }
15671567

15681568
// \returns true if S_GETPC_B64 zero-extends the result from 48 bits instead
1569-
// of sign-extending.
1570-
bool hasGetPCZeroExtension() const { return GFX12Insts; }
1569+
// of sign-extending. Note that GFX1250 has not only fixed the bug but also
1570+
// extended VA to 57 bits.
1571+
bool hasGetPCZeroExtension() const { return GFX12Insts && !GFX1250Insts; }
15711572

15721573
/// \returns SGPR allocation granularity supported by the subtarget.
15731574
unsigned getSGPRAllocGranule() const {

0 commit comments

Comments
 (0)