[llvm] 1d27faa - [AMDGPU] NFC. Add a test of the error message for assembling global_atomic_cmpswap_x2

Joe Nash via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 5 11:56:09 PDT 2022


Author: Joe Nash
Date: 2022-07-05T14:25:48-04:00
New Revision: 1d27faa5fec059d2dfdb8959f9e075f10ed785b4

URL: https://github.com/llvm/llvm-project/commit/1d27faa5fec059d2dfdb8959f9e075f10ed785b4
DIFF: https://github.com/llvm/llvm-project/commit/1d27faa5fec059d2dfdb8959f9e075f10ed785b4.diff

LOG: [AMDGPU] NFC. Add a test of the error message for assembling global_atomic_cmpswap_x2

Added: 
    

Modified: 
    llvm/test/MC/AMDGPU/gfx11-flat-errs.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/AMDGPU/gfx11-flat-errs.s b/llvm/test/MC/AMDGPU/gfx11-flat-errs.s
index 789ecb2e9f7e..e0b0e1a85077 100644
--- a/llvm/test/MC/AMDGPU/gfx11-flat-errs.s
+++ b/llvm/test/MC/AMDGPU/gfx11-flat-errs.s
@@ -458,6 +458,10 @@ global_atomic_cmpswap_b64 v[1:2], v[3:4], v[5:8], off glc
 global_atomic_cmpswap_b64 v[1:2], v[3:4], v[5:8], off glc slc
 // VI-GFX9_10-ERR: error: instruction not supported on this GPU
 
+global_atomic_cmpswap_x2 v[1:4], v3, v[5:8], off offset:2047 glc
+// GFX11-ERR: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
+// VI-GFX9_10-ERR: error:
+
 global_load_d16_u8 v1, v[3:4], off
 // VI-GFX9_10-ERR: error: instruction not supported on this GPU
 


        


More information about the llvm-commits mailing list