1// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefix=GFX89 %s 2// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefix=GFX89 %s 3// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -show-encoding %s | FileCheck -check-prefix=GFX10 %s 4// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=GFX89-ERR --implicit-check-not=error: %s 5// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck -check-prefix=GFX89-ERR --implicit-check-not=error: %s 6// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck -check-prefix=GFX10-ERR --implicit-check-not=error: %s 7 8v_mov_b32_dpp v0, v1 row_share:1 row_mask:0x1 bank_mask:0x1 9// GFX89-ERR: error: not a valid operand. 10// GFX10: v_mov_b32_dpp v0, v1 row_share:1 row_mask:0x1 bank_mask:0x1 ; encoding: [0xfa,0x02,0x00,0x7e,0x01,0x51,0x01,0x11] 11 12v_mov_b32_dpp v0, v1 row_xmask:1 row_mask:0x1 bank_mask:0x1 13// GFX89-ERR: error: not a valid operand. 14// GFX10: v_mov_b32_dpp v0, v1 row_xmask:1 row_mask:0x1 bank_mask:0x1 ; encoding: [0xfa,0x02,0x00,0x7e,0x01,0x61,0x01,0x11] 15 16v_mov_b32_dpp v0, v1 wave_shl:1 row_mask:0x1 bank_mask:0x1 17// GFX89: v_mov_b32_dpp v0, v1 wave_shl:1 row_mask:0x1 bank_mask:0x1 ; encoding: [0xfa,0x02,0x00,0x7e,0x01,0x30,0x01,0x11] 18// GFX10-ERR: error: not a valid operand. 19 20v_mov_b32_dpp v0, v1 wave_shr:1 row_mask:0x1 bank_mask:0x1 21// GFX89: v_mov_b32_dpp v0, v1 wave_shr:1 row_mask:0x1 bank_mask:0x1 ; encoding: [0xfa,0x02,0x00,0x7e,0x01,0x38,0x01,0x11] 22// GFX10-ERR: error: not a valid operand. 23 24v_mov_b32_dpp v0, v1 wave_rol:1 row_mask:0x1 bank_mask:0x1 25// GFX89: v_mov_b32_dpp v0, v1 wave_rol:1 row_mask:0x1 bank_mask:0x1 ; encoding: [0xfa,0x02,0x00,0x7e,0x01,0x34,0x01,0x11] 26// GFX10-ERR: error: not a valid operand. 27 28v_mov_b32_dpp v0, v1 wave_ror:1 row_mask:0x1 bank_mask:0x1 29// GFX89: v_mov_b32_dpp v0, v1 wave_ror:1 row_mask:0x1 bank_mask:0x1 ; encoding: [0xfa,0x02,0x00,0x7e,0x01,0x3c,0x01,0x11] 30// GFX10-ERR: error: not a valid operand. 31 32v_mov_b32_dpp v0, v1 row_bcast:15 row_mask:0x1 bank_mask:0x1 33// GFX89: v_mov_b32_dpp v0, v1 row_bcast:15 row_mask:0x1 bank_mask:0x1 ; encoding: [0xfa,0x02,0x00,0x7e,0x01,0x42,0x01,0x11] 34// GFX10-ERR: error: not a valid operand. 35 36v_mov_b32_dpp v0, v1 row_bcast:31 row_mask:0x1 bank_mask:0x1 37// GFX89: v_mov_b32_dpp v0, v1 row_bcast:31 row_mask:0x1 bank_mask:0x1 ; encoding: [0xfa,0x02,0x00,0x7e,0x01,0x43,0x01,0x11] 38// GFX10-ERR: error: not a valid operand. 39