See bug 40806: https://bugs.llvm.org/show_bug.cgi?id=40806
Truncation rules used before this change are described here:
literals: https://llvm.org/docs/AMDGPUOperandSyntax.html#integer-literals
inlinable constants: https://llvm.org/docs/AMDGPUOperandSyntax.html#integer-inline-constants