1// RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s 2>&1 | FileCheck -check-prefix=NOSI %s 2// RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s 2>&1 | FileCheck -check-prefix=NOCI %s 3// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck -check-prefix=NOVI %s 4// RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s | FileCheck -check-prefix=CI %s 5// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefix=VI %s 6 7s_mov_b64 flat_scratch, -1 8// NOSI: error: not a valid operand. 9// CI: s_mov_b64 flat_scratch, -1 ; encoding: [0xc1,0x04,0xe8,0xbe] 10// VI: s_mov_b64 flat_scratch, -1 ; encoding: [0xc1,0x01,0xe6,0xbe] 11 12s_mov_b32 flat_scratch_lo, -1 13// NOSI: error: not a valid operand. 14// CI: s_mov_b32 flat_scratch_lo, -1 ; encoding: [0xc1,0x03,0xe8,0xbe] 15// VI: s_mov_b32 flat_scratch_lo, -1 ; encoding: [0xc1,0x00,0xe6,0xbe] 16 17s_mov_b32 flat_scratch_hi, -1 18// NOSI: error: not a valid operand. 19// CI: s_mov_b32 flat_scratch_hi, -1 ; encoding: [0xc1,0x03,0xe9,0xbe] 20// VI: s_mov_b32 flat_scratch_hi, -1 ; encoding: [0xc1,0x00,0xe7,0xbe] 21 22 23s_mov_b64 flat_scratch_lo, -1 24// NOSI: error: not a valid operand. 25// NOCI: error: invalid operand for instruction 26// NOVI: error: invalid operand for instruction 27 28s_mov_b64 flat_scratch_hi, -1 29// NOSI: error: not a valid operand. 30// NOCI: error: invalid operand for instruction 31// NOVI: error: invalid operand for instruction 32 33s_mov_b32 flat_scratch, -1 34// NOSI: error: not a valid operand. 35// NOCI: error: invalid operand for instruction 36// NOVI: error: invalid operand for instruction 37