59 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1200 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX1200-ERR %s2// RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -show-encoding %s | FileCheck --check-prefix=GFX1250 %s3 4s_mov_b32 s0, src_flat_scratch_base_lo5// GFX1200-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: src_flat_scratch_base_lo register not available on this GPU6// GFX1250: encoding: [0xe6,0x00,0x80,0xbe]7 8s_mov_b32 s0, src_flat_scratch_base_hi9// GFX1200-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: src_flat_scratch_base_hi register not available on this GPU10// GFX1250: encoding: [0xe7,0x00,0x80,0xbe]11 12s_mov_b64 s[0:1], src_flat_scratch_base_lo13// GFX1200-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: src_flat_scratch_base_lo register not available on this GPU14// GFX1250: encoding: [0xe6,0x01,0x80,0xbe]15 16s_mov_b64 s[0:1], shared_base17// GFX1250: encoding: [0xeb,0x01,0x80,0xbe]18 19s_mov_b64 s[0:1], src_shared_base20// GFX1250: encoding: [0xeb,0x01,0x80,0xbe]21 22s_mov_b64 s[0:1], shared_limit23// GFX1250: encoding: [0xec,0x01,0x80,0xbe]24 25s_mov_b64 s[0:1], src_shared_limit26// GFX1250: encoding: [0xec,0x01,0x80,0xbe]27 28s_getreg_b32 s1, hwreg(33)29// GFX1250: encoding: [0x21,0xf8,0x81,0xb8]30 31s_getreg_b32 s1, hwreg(HW_REG_XNACK_STATE_PRIV)32// GFX1200-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU33// GFX1250: encoding: [0x21,0xf8,0x81,0xb8]34 35s_getreg_b32 s1, hwreg(34)36// GFX1250: encoding: [0x22,0xf8,0x81,0xb8]37 38s_getreg_b32 s1, hwreg(HW_REG_XNACK_MASK)39// GFX1200-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU40// GFX1250: encoding: [0x22,0xf8,0x81,0xb8]41 42s_setreg_b32 hwreg(33), s143// GFX1250: encoding: [0x21,0xf8,0x01,0xb9]44 45s_setreg_b32 hwreg(HW_REG_XNACK_STATE_PRIV), s146// GFX1200-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU47// GFX1250: encoding: [0x21,0xf8,0x01,0xb9]48 49s_setreg_b32 hwreg(34), s150// GFX1250: encoding: [0x22,0xf8,0x01,0xb9]51 52s_setreg_b32 hwreg(HW_REG_XNACK_MASK), s153// GFX1200-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU54// GFX1250: encoding: [0x22,0xf8,0x01,0xb9]55 56s_setreg_b32 hwreg(HW_REG_IB_STS2), s157// GFX1200-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU58// GFX1250: encoding: [0x1c,0xf8,0x01,0xb9]59