// RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,SICIVI9-ERR,SIVICI-ERR,SI-ERR %s // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,SICIVI9-ERR,SIVICI-ERR,CIVI9-ERR %s // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,GFX9-ERR,SICIVI9-ERR,CIVI9-ERR %s // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,GFX10-ERR %s // RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s 2>&1 | FileCheck -check-prefix=SIVICI %s // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck -check-prefix=SIVICI %s // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX9 %s // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX10 %s s_add_i32 s106, s0, s1 // GCN-ERR: error: not a valid operand s_add_i32 s104, s0, s1 // SICIVI9-ERR: error: not a valid operand // GFX10: s_add_i32 s104, s0, s1 ; encoding: s_add_i32 s105, s0, s1 // SICIVI9-ERR: error: not a valid operand // GFX10: s_add_i32 s105, s0, s1 ; encoding: v_add_i32 v256, v0, v1 // GCN-ERR: error: not a valid operand v_add_i32 v257, v0, v1 // GCN-ERR: error: not a valid operand s_mov_b64 s[0:17], -1 // GCN-ERR: error: not a valid operand s_mov_b64 s[103:104], -1 // GCN-ERR: error: not a valid operand s_mov_b64 s[105:106], -1 // GCN-ERR: error: not a valid operand s_mov_b64 s[104:105], -1 // SICIVI9-ERR: error: not a valid operand // GFX10: s_mov_b64 s[104:105], -1 ; encoding: s_load_dwordx4 s[102:105], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx4 s[104:108], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx4 s[108:112], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx4 s[1:4], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx4 s[1:4], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx8 s[104:111], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx8 s[100:107], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx8 s[108:115], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx16 s[92:107], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx16 s[96:111], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx16 s[100:115], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx16 s[104:119], s[2:3], s4 // GCN-ERR: error: not a valid operand s_load_dwordx16 s[108:123], s[2:3], s4 // GCN-ERR: error: not a valid operand s_mov_b32 ttmp16, 0 // GCN-ERR: error: not a valid operand s_mov_b32 ttmp12, 0 // SICIVI: error: not a valid operand // GFX9: s_mov_b32 ttmp12, 0 ; encoding: // GFX10: s_mov_b32 ttmp12, 0 ; encoding: s_mov_b32 ttmp15, 0 // SICIVI: error: not a valid operand // GFX9: s_mov_b32 ttmp15, 0 ; encoding: // GFX10: s_mov_b32 ttmp15, 0 ; encoding: s_mov_b32 flat_scratch_lo, 0 // SI-ERR: error: not a valid operand // CIVI9: s_mov_b32 flat_scratch_lo, 0 ; encoding: // GFX10-ERR: error: not a valid operand s_mov_b32 flat_scratch_hi, 0 // SI-ERR: error: not a valid operand // CIVI9: s_mov_b32 flat_scratch_hi, 0 ; encoding: // GFX10-ERR: error: not a valid operand s_mov_b32 tma_lo, 0 // SIVICI: s_mov_b32 tma_lo, 0 ; encoding: // GFX9-ERR: error: not a valid operand // GFX10-ERR: error: not a valid operand s_mov_b32 tba_lo, 0 // SIVICI: s_mov_b32 tba_lo, 0 ; encoding: // GFX9-ERR: error: not a valid operand // GFX10-ERR: error: not a valid operand