[AMDGPU][MC] Don't accept attr > 32 for param_load
The docs say the interpolation attribute should be between 0..32 [1][2], but we currently accept values all the way up to 63. This patch makes the ASMParser error out for values > 32. It does not touch codegen though because we're currently not checking anything at all for codegen (llvm.amdgcn.lds.param.load will happily accept even 128 as an attr, although that won't fit in the encoding). [1] https://llvm.org/docs/AMDGPU/gfx8_attr.html#amdgpu-synid-gfx8-attr [2] https://llvm.org/docs/AMDGPU/gfx11_attr.html#amdgpu-synid-gfx11-attr Differential Revision: https://reviews.llvm.org/D150261
Loading
Please sign in to comment