diff options
Diffstat (limited to 'llvm/test/MC/AMDGPU/flat-gfx9.s')
-rw-r--r-- | llvm/test/MC/AMDGPU/flat-gfx9.s | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/llvm/test/MC/AMDGPU/flat-gfx9.s b/llvm/test/MC/AMDGPU/flat-gfx9.s index 42ef4eb52a7..bb6839a9b13 100644 --- a/llvm/test/MC/AMDGPU/flat-gfx9.s +++ b/llvm/test/MC/AMDGPU/flat-gfx9.s @@ -9,39 +9,41 @@ flat_load_dword v1, v[3:4] offset:0 // GCN: flat_load_dword v1, v[3:4] ; encoding: [0x00,0x00,0x50,0xdc,0x03,0x00,0x00,0x01] flat_load_dword v1, v[3:4] offset:-1 -// GCN-ERR: :35: error: failed parsing operand. +// VI-ERR: :28: error: flat offset modifier is not supported on this GPU +// GFX9-ERR: :28: error: expected a 12-bit unsigned offset // FIXME: Error on VI in wrong column flat_load_dword v1, v[3:4] offset:4095 // GFX9: flat_load_dword v1, v[3:4] offset:4095 ; encoding: [0xff,0x0f,0x50,0xdc,0x03,0x00,0x00,0x01] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :28: error: flat offset modifier is not supported on this GPU flat_load_dword v1, v[3:4] offset:4096 -// GCNERR: :28: error: invalid operand for instruction +// VI-ERR: :28: error: flat offset modifier is not supported on this GPU +// GFX9-ERR: :28: error: expected a 12-bit unsigned offset flat_load_dword v1, v[3:4] offset:4 glc // GFX9: flat_load_dword v1, v[3:4] offset:4 glc ; encoding: [0x04,0x00,0x51,0xdc,0x03,0x00,0x00,0x01] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :28: error: flat offset modifier is not supported on this GPU flat_load_dword v1, v[3:4] offset:4 glc slc // GFX9: flat_load_dword v1, v[3:4] offset:4 glc slc ; encoding: [0x04,0x00,0x53,0xdc,0x03,0x00,0x00,0x01] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :28: error: flat offset modifier is not supported on this GPU flat_atomic_add v[3:4], v5 offset:8 slc // GFX9: flat_atomic_add v[3:4], v5 offset:8 slc ; encoding: [0x08,0x00,0x0a,0xdd,0x03,0x05,0x00,0x00] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :28: error: flat offset modifier is not supported on this GPU flat_atomic_add v[3:4], v5 inst_offset:8 slc // GFX9: flat_atomic_add v[3:4], v5 offset:8 slc ; encoding: [0x08,0x00,0x0a,0xdd,0x03,0x05,0x00,0x00] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :28: error: flat offset modifier is not supported on this GPU flat_atomic_cmpswap v[1:2], v[3:4] offset:4095 // GFX9: flat_atomic_cmpswap v[1:2], v[3:4] offset:4095 ; encoding: [0xff,0x0f,0x04,0xdd,0x01,0x03,0x00,0x00] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :36: error: flat offset modifier is not supported on this GPU flat_atomic_cmpswap v[1:2], v[3:4] offset:4095 slc // GFX9: flat_atomic_cmpswap v[1:2], v[3:4] offset:4095 slc ; encoding: [0xff,0x0f,0x06,0xdd,0x01,0x03,0x00,0x00] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :36: error: flat offset modifier is not supported on this GPU flat_atomic_cmpswap v[1:2], v[3:4] // GFX9: flat_atomic_cmpswap v[1:2], v[3:4] ; encoding: [0x00,0x00,0x04,0xdd,0x01,0x03,0x00,0x00] @@ -59,11 +61,11 @@ flat_atomic_cmpswap v[1:2], v[3:4] glc flat_atomic_cmpswap v0, v[1:2], v[3:4] offset:4095 glc // GFX9: flat_atomic_cmpswap v0, v[1:2], v[3:4] offset:4095 glc ; encoding: [0xff,0x0f,0x05,0xdd,0x01,0x03,0x00,0x00] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :40: error: flat offset modifier is not supported on this GPU flat_atomic_cmpswap v0, v[1:2], v[3:4] offset:4095 glc slc // GFX9: flat_atomic_cmpswap v0, v[1:2], v[3:4] offset:4095 glc slc ; encoding: [0xff,0x0f,0x07,0xdd,0x01,0x03,0x00,0x00] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :40: error: flat offset modifier is not supported on this GPU flat_atomic_cmpswap v0, v[1:2], v[3:4] glc // GFX9: flat_atomic_cmpswap v0, v[1:2], v[3:4] glc ; encoding: [0x00,0x00,0x05,0xdd,0x01,0x03,0x00,0x00] @@ -85,11 +87,11 @@ flat_atomic_cmpswap v0, v[1:2], v[3:4] slc flat_atomic_swap v[3:4], v5 offset:16 // GFX9: flat_atomic_swap v[3:4], v5 offset:16 ; encoding: [0x10,0x00,0x00,0xdd,0x03,0x05,0x00,0x00] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :29: error: flat offset modifier is not supported on this GPU flat_store_dword v[3:4], v1 offset:16 // GFX9: flat_store_dword v[3:4], v1 offset:16 ; encoding: [0x10,0x00,0x70,0xdc,0x03,0x01,0x00,0x00] -// VIERR: :1: error: invalid operand for instruction +// VI-ERR: :29: error: flat offset modifier is not supported on this GPU flat_store_dword v[3:4], v1, off // GCNERR: :30: error: invalid operand for instruction |