aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/SourceManagerTest.cpp
diff options
context:
space:
mode:
authorJoe Nash <Joseph.Nash@amd.com>2022-09-29 13:30:25 -0400
committerJoe Nash <Joseph.Nash@amd.com>2022-10-05 11:15:40 -0400
commit203d0b0ee1369b1479da98922797ce68827fcd55 (patch)
tree784d86525ee361b72e249734e0cd4965295a2740 /clang/unittests/Basic/SourceManagerTest.cpp
parenta3a741c0bbb22c93f20941cb191e6638e9880b33 (diff)
downloadllvm-203d0b0ee1369b1479da98922797ce68827fcd55.zip
llvm-203d0b0ee1369b1479da98922797ce68827fcd55.tar.gz
llvm-203d0b0ee1369b1479da98922797ce68827fcd55.tar.bz2
[AMDGPU] Fix V_CMP_CLASS_F16_t16_e64 src1 type.
For V_CMP_CLASS_F16_t16_e64 and V_CMPX_CLASS_F16_t16_e64, https://reviews.llvm.org/D133723 changed the value type of src1 from i32 to i16. These src1 operands are 16 bits, therefore need to be encoded as true16 operands. So the _e32 type was correctly set to VGPR_32_Lo128. In _e64 form the operand class went from VSrc_b32 to VSrc_b16. For some reason, we cannot encode inline literals for VSrc_b16, see 5f5f566b265db00f577ead268400d99f34ba9cdd. In this phase of the true16 implementation, VSrc_b16 and VSrc_b32 are still similar, except from that quirk of inlines. So set the operand class to regain that function. Reviewed By: dp, arsenm Differential Revision: https://reviews.llvm.org/D134897
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions