forked from OSchip/llvm-project
41 lines
2.0 KiB
ArmAsm
41 lines
2.0 KiB
ArmAsm
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefix=GFX9 -check-prefix=GCN %s
|
|
// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefix=VI -check-prefix=GCN %s
|
|
|
|
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding 2>&1 %s | FileCheck -check-prefix=GFX9-ERR -check-prefix=GCNERR %s
|
|
// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding 2>&1 %s | FileCheck -check-prefix=VI-ERR -check-prefix=GCNERR %s
|
|
|
|
|
|
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.
|
|
|
|
// 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
|
|
|
|
flat_load_dword v1, v[3:4] offset:4096
|
|
// GCNERR: :28: error: invalid operand for instruction
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|