diff options
author | Dmitry Preobrazhensky <dmitry.preobrazhensky@amd.com> | 2019-10-11 14:05:09 +0000 |
---|---|---|
committer | Dmitry Preobrazhensky <dmitry.preobrazhensky@amd.com> | 2019-10-11 14:05:09 +0000 |
commit | 882c3e3db52da2fdb142e206f8113637e232dcd2 (patch) | |
tree | cbbc9b0f9b644900f35329427c02c9b295be5949 /llvm/test/MC/AMDGPU | |
parent | cf2438ec130946ad0f2d533f84831b742262d9f9 (diff) | |
download | bcm5719-llvm-882c3e3db52da2fdb142e206f8113637e232dcd2.tar.gz bcm5719-llvm-882c3e3db52da2fdb142e206f8113637e232dcd2.zip |
[AMDGPU][MC] Corrected parsing of optional operands
See https://bugs.llvm.org/show_bug.cgi?id=43486
Reviewers: artem.tamazov, arsenm
Differential Revision: https://reviews.llvm.org/D68350
llvm-svn: 374553
Diffstat (limited to 'llvm/test/MC/AMDGPU')
-rw-r--r-- | llvm/test/MC/AMDGPU/flat-global.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/MC/AMDGPU/flat-global.s b/llvm/test/MC/AMDGPU/flat-global.s index 0c9d4d0d77c..83b0c4c29b6 100644 --- a/llvm/test/MC/AMDGPU/flat-global.s +++ b/llvm/test/MC/AMDGPU/flat-global.s @@ -526,3 +526,8 @@ global_store_short_d16_hi v[3:4], v1, off // GFX10: encoding: [0x00,0x80,0x6c,0xdc,0x03,0x01,0x7d,0x00] // GFX9: global_store_short_d16_hi v[3:4], v1, off ; encoding: [0x00,0x80,0x6c,0xdc,0x03,0x01,0x7f,0x00] // VI-ERR: instruction not supported on this GPU + +global_atomic_add v0, v[1:2], v2, off glc slc +// GFX10: global_atomic_add v0, v[1:2], v2, off glc slc ; encoding: [0x00,0x80,0xcb,0xdc,0x01,0x02,0x7d,0x00] +// GFX9: global_atomic_add v0, v[1:2], v2, off glc slc ; encoding: [0x00,0x80,0x0b,0xdd,0x01,0x02,0x7f,0x00] +// VI-ERR: error: invalid operand for instruction |