diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-12-10 00:39:12 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-12-10 00:39:12 +0000 |
commit | 4bd72361935300f1699d3e49ba3304f0c7631f1a (patch) | |
tree | 2d92b1bd6dc4e80a7d6622d1efbb91d843b62a43 /llvm/lib/Analysis/LoopPassManager.cpp | |
parent | 86581e496b07cd975b8df2e59734b1d5341f0fa3 (diff) | |
download | llvm-4bd72361935300f1699d3e49ba3304f0c7631f1a.zip llvm-4bd72361935300f1699d3e49ba3304f0c7631f1a.tar.gz llvm-4bd72361935300f1699d3e49ba3304f0c7631f1a.tar.bz2 |
AMDGPU: Fix handling of 16-bit immediates
Since 32-bit instructions with 32-bit input immediate behavior
are used to materialize 16-bit constants in 32-bit registers
for 16-bit instructions, determining the legality based
on the size is incorrect. Change operands to have the size
specified in the type.
Also adds a workaround for a disassembler bug that
produces an immediate MCOperand for an operand that
is supposed to be OPERAND_REGISTER.
The assembler appears to accept out of bounds immediates and
truncates them, but this seems to be an issue for 32-bit
already.
llvm-svn: 289306
Diffstat (limited to 'llvm/lib/Analysis/LoopPassManager.cpp')
0 files changed, 0 insertions, 0 deletions