Skip to content

Commit 811538e

Browse files
authored
AMDGPU: Check aligned vgpr feature in assembler (#156997)
Use the new feature instead of listing the two separate cases.
1 parent 5a9e7fc commit 811538e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5234,7 +5234,7 @@ bool AMDGPUAsmParser::validateAGPRLdSt(const MCInst &Inst) const {
52345234

52355235
bool AMDGPUAsmParser::validateVGPRAlign(const MCInst &Inst) const {
52365236
auto FB = getFeatureBits();
5237-
if (!FB[AMDGPU::FeatureGFX90AInsts] && !FB[AMDGPU::FeatureGFX1250Insts])
5237+
if (!FB[AMDGPU::FeatureRequiresAlignedVGPRs])
52385238
return true;
52395239

52405240
unsigned Opc = Inst.getOpcode();

0 commit comments

Comments
 (0)