612 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefixes=GFX9,GCN %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 2>&1 %s | FileCheck -check-prefix=GFX9-ERR --implicit-check-not=error: %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga 2>&1 %s | FileCheck -check-prefix=VI-ERR --implicit-check-not=error: %s4 5// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 -show-encoding %s | FileCheck --check-prefix=GFX10 %s6// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck --check-prefix=GFX10-ERR --implicit-check-not=error: %s7 8global_load_ubyte v1, v[3:4], off9// GFX10: encoding: [0x00,0x80,0x20,0xdc,0x03,0x00,0x7d,0x01]10// GFX9: global_load_ubyte v1, v[3:4], off ; encoding: [0x00,0x80,0x40,0xdc,0x03,0x00,0x7f,0x01]11// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU12 13global_load_ubyte v1, v[3:4], off dlc14// GFX10: encoding: [0x00,0x90,0x20,0xdc,0x03,0x00,0x7d,0x01]15// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU16// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU17 18global_load_sbyte v1, v[3:4], off19// GFX10: encoding: [0x00,0x80,0x24,0xdc,0x03,0x00,0x7d,0x01]20// GFX9: global_load_sbyte v1, v[3:4], off ; encoding: [0x00,0x80,0x44,0xdc,0x03,0x00,0x7f,0x01]21// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU22 23global_load_sbyte v1, v[3:4], off dlc24// GFX10: encoding: [0x00,0x90,0x24,0xdc,0x03,0x00,0x7d,0x01]25// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU26// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU27 28global_load_ushort v1, v[3:4], off29// GFX10: encoding: [0x00,0x80,0x28,0xdc,0x03,0x00,0x7d,0x01]30// GFX9: global_load_ushort v1, v[3:4], off ; encoding: [0x00,0x80,0x48,0xdc,0x03,0x00,0x7f,0x01]31// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU32 33global_load_ushort v1, v[3:4], off dlc34// GFX10: encoding: [0x00,0x90,0x28,0xdc,0x03,0x00,0x7d,0x01]35// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU36// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU37 38global_load_sshort v1, v[3:4], off39// GFX10: encoding: [0x00,0x80,0x2c,0xdc,0x03,0x00,0x7d,0x01]40// GFX9: global_load_sshort v1, v[3:4], off ; encoding: [0x00,0x80,0x4c,0xdc,0x03,0x00,0x7f,0x01]41// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU42 43global_load_sshort v1, v[3:4], off dlc44// GFX10: encoding: [0x00,0x90,0x2c,0xdc,0x03,0x00,0x7d,0x01]45// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU46// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU47 48global_load_dword v1, v[3:4], off49// GFX10: encoding: [0x00,0x80,0x30,0xdc,0x03,0x00,0x7d,0x01]50// GFX9: global_load_dword v1, v[3:4], off ; encoding: [0x00,0x80,0x50,0xdc,0x03,0x00,0x7f,0x01]51// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU52 53global_load_dword v1, v[3:4], off dlc54// GFX10: encoding: [0x00,0x90,0x30,0xdc,0x03,0x00,0x7d,0x01]55// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU56// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU57 58global_load_dwordx2 v[1:2], v[3:4], off59// GFX10: encoding: [0x00,0x80,0x34,0xdc,0x03,0x00,0x7d,0x01]60// GFX9: global_load_dwordx2 v[1:2], v[3:4], off ; encoding: [0x00,0x80,0x54,0xdc,0x03,0x00,0x7f,0x01]61// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU62 63global_load_dwordx2 v[1:2], v[3:4], off dlc64// GFX10: encoding: [0x00,0x90,0x34,0xdc,0x03,0x00,0x7d,0x01]65// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU66// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU67 68global_load_dwordx3 v[1:3], v[3:4], off69// GFX10: encoding: [0x00,0x80,0x3c,0xdc,0x03,0x00,0x7d,0x01]70// GFX9: global_load_dwordx3 v[1:3], v[3:4], off ; encoding: [0x00,0x80,0x58,0xdc,0x03,0x00,0x7f,0x01]71// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU72 73global_load_dwordx3 v[1:3], v[3:4], off dlc74// GFX10: encoding: [0x00,0x90,0x3c,0xdc,0x03,0x00,0x7d,0x01]75// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU76// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU77 78global_load_dwordx4 v[1:4], v[3:4], off79// GFX10: encoding: [0x00,0x80,0x38,0xdc,0x03,0x00,0x7d,0x01]80// GFX9: global_load_dwordx4 v[1:4], v[3:4], off ; encoding: [0x00,0x80,0x5c,0xdc,0x03,0x00,0x7f,0x01]81// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU82 83global_load_dwordx4 v[1:4], v[3:4], off dlc84// GFX10: encoding: [0x00,0x90,0x38,0xdc,0x03,0x00,0x7d,0x01]85// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU86// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU87 88global_load_dword v1, v[3:4], off offset:089// GFX10: encoding: [0x00,0x80,0x30,0xdc,0x03,0x00,0x7d,0x01]90// GFX9: global_load_dword v1, v[3:4], off ; encoding: [0x00,0x80,0x50,0xdc,0x03,0x00,0x7f,0x01]91// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU92 93global_load_dword v1, v[3:4], off offset:409594// GFX10-ERR: :[[@LINE-1]]:35: error: expected a 12-bit signed offset95// GFX9: global_load_dword v1, v[3:4], off offset:4095 ; encoding: [0xff,0x8f,0x50,0xdc,0x03,0x00,0x7f,0x01]96// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU97 98global_load_dword v1, v[3:4], off offset:-199// GFX10: encoding: [0xff,0x8f,0x30,0xdc,0x03,0x00,0x7d,0x01]100// GFX9: global_load_dword v1, v[3:4], off offset:-1 ; encoding: [0xff,0x9f,0x50,0xdc,0x03,0x00,0x7f,0x01]101// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU102 103global_load_dword v1, v[3:4], off offset:-4096104// GFX10-ERR: :[[@LINE-1]]:35: error: expected a 12-bit signed offset105// GFX9: global_load_dword v1, v[3:4], off offset:-4096 ; encoding: [0x00,0x90,0x50,0xdc,0x03,0x00,0x7f,0x01]106// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU107 108global_load_dword v1, v[3:4], off offset:4096109// GFX10-ERR: :[[@LINE-1]]:35: error: expected a 12-bit signed offset110// GFX9-ERR: :[[@LINE-2]]:35: error: expected a 13-bit signed offset111// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU112 113global_load_dword v1, v[3:4] off, offset:-4097114// GFX10-ERR: :[[@LINE-1]]:35: error: expected a 12-bit signed offset115// GFX9-ERR: :[[@LINE-2]]:35: error: expected a 13-bit signed offset116// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU117 118global_store_byte v[3:4], v1, off119// GFX10: encoding: [0x00,0x80,0x60,0xdc,0x03,0x01,0x7d,0x00]120// GFX9: global_store_byte v[3:4], v1, off ; encoding: [0x00,0x80,0x60,0xdc,0x03,0x01,0x7f,0x00]121// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU122 123global_store_byte v[3:4], v1, off dlc124// GFX10: encoding: [0x00,0x90,0x60,0xdc,0x03,0x01,0x7d,0x00]125// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU126// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU127 128global_store_short v[3:4], v1, off129// GFX10: encoding: [0x00,0x80,0x68,0xdc,0x03,0x01,0x7d,0x00]130// GFX9: global_store_short v[3:4], v1, off ; encoding: [0x00,0x80,0x68,0xdc,0x03,0x01,0x7f,0x00]131// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU132 133global_store_short v[3:4], v1, off dlc134// GFX10: encoding: [0x00,0x90,0x68,0xdc,0x03,0x01,0x7d,0x00]135// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU136// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU137 138global_store_dword v[3:4], v1, off139// GFX10: encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x7d,0x00]140// GFX9: global_store_dword v[3:4], v1, off ; encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x7f,0x00]141// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU142 143global_store_dword v[3:4], v1, off dlc144// GFX10: encoding: [0x00,0x90,0x70,0xdc,0x03,0x01,0x7d,0x00]145// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU146// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU147 148global_store_dwordx2 v[3:4], v[1:2], off149// GFX10: encoding: [0x00,0x80,0x74,0xdc,0x03,0x01,0x7d,0x00]150// GFX9: global_store_dwordx2 v[3:4], v[1:2], off ; encoding: [0x00,0x80,0x74,0xdc,0x03,0x01,0x7f,0x00]151// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU152 153global_store_dwordx2 v[3:4], v[1:2], off dlc154// GFX10: encoding: [0x00,0x90,0x74,0xdc,0x03,0x01,0x7d,0x00]155// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU156// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU157 158global_store_dwordx3 v[3:4], v[1:3], off159// GFX10: encoding: [0x00,0x80,0x7c,0xdc,0x03,0x01,0x7d,0x00]160// GFX9: global_store_dwordx3 v[3:4], v[1:3], off ; encoding: [0x00,0x80,0x78,0xdc,0x03,0x01,0x7f,0x00]161// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU162 163global_store_dwordx3 v[3:4], v[1:3], off dlc164// GFX10: encoding: [0x00,0x90,0x7c,0xdc,0x03,0x01,0x7d,0x00]165// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU166// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU167 168global_store_dwordx4 v[3:4], v[1:4], off169// GFX10: encoding: [0x00,0x80,0x78,0xdc,0x03,0x01,0x7d,0x00]170// GFX9: global_store_dwordx4 v[3:4], v[1:4], off ; encoding: [0x00,0x80,0x7c,0xdc,0x03,0x01,0x7f,0x00]171// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU172 173global_store_dwordx4 v[3:4], v[1:4], off dlc174// GFX10: encoding: [0x00,0x90,0x78,0xdc,0x03,0x01,0x7d,0x00]175// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: dlc modifier is not supported on this GPU176// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU177 178global_store_dword v[3:4], v1, off offset:12179// GFX10: encoding: [0x0c,0x80,0x70,0xdc,0x03,0x01,0x7d,0x00]180// GFX9: global_store_dword v[3:4], v1, off offset:12 ; encoding: [0x0c,0x80,0x70,0xdc,0x03,0x01,0x7f,0x00]181// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU182 183global_load_dword v1, v3, s[2:3]184// GFX10: encoding: [0x00,0x80,0x30,0xdc,0x03,0x00,0x02,0x01]185// GFX9: global_load_dword v1, v3, s[2:3] ; encoding: [0x00,0x80,0x50,0xdc,0x03,0x00,0x02,0x01]186// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU187 188global_load_dword v1, v3, s[2:3] offset:24189// GFX10: encoding: [0x18,0x80,0x30,0xdc,0x03,0x00,0x02,0x01]190// GFX9: global_load_dword v1, v3, s[2:3] offset:24 ; encoding: [0x18,0x80,0x50,0xdc,0x03,0x00,0x02,0x01]191// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU192 193global_load_dword v1, v3, s[2:3] offset:-8194// GFX10: encoding: [0xf8,0x8f,0x30,0xdc,0x03,0x00,0x02,0x01]195// GFX9: global_load_dword v1, v3, s[2:3] offset:-8 ; encoding: [0xf8,0x9f,0x50,0xdc,0x03,0x00,0x02,0x01]196// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU197 198global_store_dword v3, v1, s[2:3]199// GFX10: encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]200// GFX9: global_store_dword v3, v1, s[2:3] ; encoding: [0x00,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]201// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU202 203global_store_dword v3, v1, s[2:3] offset:24204// GFX10: encoding: [0x18,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]205// GFX9: global_store_dword v3, v1, s[2:3] offset:24 ; encoding: [0x18,0x80,0x70,0xdc,0x03,0x01,0x02,0x00]206// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU207 208global_store_dword v3, v1, s[2:3] offset:-8209// GFX10: encoding: [0xf8,0x8f,0x70,0xdc,0x03,0x01,0x02,0x00]210// GFX9: global_store_dword v3, v1, s[2:3] offset:-8 ; encoding: [0xf8,0x9f,0x70,0xdc,0x03,0x01,0x02,0x00]211// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU212 213global_store_dword v3, v1, exec214// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction215// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction216// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU217 218global_load_dword v1, v[3:4], s2219// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction220// GFX9-ERR: :[[@LINE-2]]:31: error: invalid operand for instruction221// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU222 223global_load_dword v1, v[3:4], exec_hi224// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction225// GFX9-ERR: :[[@LINE-2]]:31: error: invalid operand for instruction226// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU227 228global_atomic_cmpswap v[3:4], v[5:6], off229// GFX10: encoding: [0x00,0x80,0xc4,0xdc,0x03,0x05,0x7d,0x00]230// GFX9: global_atomic_cmpswap v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x04,0xdd,0x03,0x05,0x7f,0x00]231// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU232 233global_atomic_cmpswap v1, v[3:4], v[5:6], off glc234// GFX10: encoding: [0x00,0x80,0xc5,0xdc,0x03,0x05,0x7d,0x01]235// GFX9: global_atomic_cmpswap v1, v[3:4], v[5:6], off glc ; encoding: [0x00,0x80,0x05,0xdd,0x03,0x05,0x7f,0x01]236// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU237 238global_atomic_cmpswap v1, v3, v[5:6], s[2:3] glc239// GFX10: encoding: [0x00,0x80,0xc5,0xdc,0x03,0x05,0x02,0x01]240// GFX9: global_atomic_cmpswap v1, v3, v[5:6], s[2:3] glc ; encoding: [0x00,0x80,0x05,0xdd,0x03,0x05,0x02,0x01]241// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU242 243global_atomic_cmpswap v1, v[2:3], v[4:5], off offset:-1 glc244// GCN: global_atomic_cmpswap v1, v[2:3], v[4:5], off offset:-1 glc ; encoding: [0xff,0x9f,0x05,0xdd,0x02,0x04,0x7f,0x01]245// GFX10: global_atomic_cmpswap v1, v[2:3], v[4:5], off offset:-1 glc ; encoding: [0xff,0x8f,0xc5,0xdc,0x02,0x04,0x7d,0x01]246// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU247 248global_atomic_cmpswap v1, v[2:3], v[254:255], off offset:-1 glc249// GCN: global_atomic_cmpswap v1, v[2:3], v[254:255], off offset:-1 glc ; encoding: [0xff,0x9f,0x05,0xdd,0x02,0xfe,0x7f,0x01]250// GFX10: global_atomic_cmpswap v1, v[2:3], v[254:255], off offset:-1 glc ; encoding: [0xff,0x8f,0xc5,0xdc,0x02,0xfe,0x7d,0x01]251// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU252 253global_atomic_cmpswap v1, v2, v[4:5], s[2:3] offset:-1 glc254// GCN: global_atomic_cmpswap v1, v2, v[4:5], s[2:3] offset:-1 glc ; encoding: [0xff,0x9f,0x05,0xdd,0x02,0x04,0x02,0x01]255// GFX10: global_atomic_cmpswap v1, v2, v[4:5], s[2:3] offset:-1 glc ; encoding: [0xff,0x8f,0xc5,0xdc,0x02,0x04,0x02,0x01]256// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU257 258global_atomic_cmpswap v1, v[2:3], v[4:5], off glc259// GCN: global_atomic_cmpswap v1, v[2:3], v[4:5], off glc ; encoding: [0x00,0x80,0x05,0xdd,0x02,0x04,0x7f,0x01]260// GFX10: global_atomic_cmpswap v1, v[2:3], v[4:5], off glc ; encoding: [0x00,0x80,0xc5,0xdc,0x02,0x04,0x7d,0x01]261// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU262 263global_atomic_cmpswap_x2 v[5:6], v[7:10], off264// GFX10: encoding: [0x00,0x80,0x44,0xdd,0x05,0x07,0x7d,0x00]265// GFX9: global_atomic_cmpswap_x2 v[5:6], v[7:10], off ; encoding: [0x00,0x80,0x84,0xdd,0x05,0x07,0x7f,0x00]266// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU267 268global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off glc269// GFX10: encoding: [0x00,0x80,0x45,0xdd,0x05,0x07,0x7d,0x01]270// GFX9: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off glc ; encoding: [0x00,0x80,0x85,0xdd,0x05,0x07,0x7f,0x01]271// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU272 273global_atomic_cmpswap_x2 v[1:2], v5, v[7:10], s[2:3] glc274// GFX10: encoding: [0x00,0x80,0x45,0xdd,0x05,0x07,0x02,0x01]275// GFX9: global_atomic_cmpswap_x2 v[1:2], v5, v[7:10], s[2:3] glc ; encoding: [0x00,0x80,0x85,0xdd,0x05,0x07,0x02,0x01]276// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU277 278global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off offset:-1 glc279// GCN: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off offset:-1 glc ; encoding: [0xff,0x9f,0x85,0xdd,0x05,0x07,0x7f,0x01]280// GFX10: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off offset:-1 glc ; encoding: [0xff,0x8f,0x45,0xdd,0x05,0x07,0x7d,0x01]281// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU282 283global_atomic_cmpswap_x2 v[1:2], v[5:6], v[252:255], off offset:-1 glc284// GCN: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[252:255], off offset:-1 glc ; encoding: [0xff,0x9f,0x85,0xdd,0x05,0xfc,0x7f,0x01]285// GFX10: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[252:255], off offset:-1 glc ; encoding: [0xff,0x8f,0x45,0xdd,0x05,0xfc,0x7d,0x01]286// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU287 288global_atomic_cmpswap_x2 v[1:2], v5, v[252:255], s[2:3] offset:-1 glc289// GCN: global_atomic_cmpswap_x2 v[1:2], v5, v[252:255], s[2:3] offset:-1 glc ; encoding: [0xff,0x9f,0x85,0xdd,0x05,0xfc,0x02,0x01]290// GFX10: global_atomic_cmpswap_x2 v[1:2], v5, v[252:255], s[2:3] offset:-1 glc ; encoding: [0xff,0x8f,0x45,0xdd,0x05,0xfc,0x02,0x01]291// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU292 293global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off glc294// GCN: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off glc ; encoding: [0x00,0x80,0x85,0xdd,0x05,0x07,0x7f,0x01]295// GFX10: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off glc ; encoding: [0x00,0x80,0x45,0xdd,0x05,0x07,0x7d,0x01]296// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU297 298global_atomic_swap v[3:4], v5, off299// GFX10: encoding: [0x00,0x80,0xc0,0xdc,0x03,0x05,0x7d,0x00]300// GFX9: global_atomic_swap v[3:4], v5, off ; encoding: [0x00,0x80,0x00,0xdd,0x03,0x05,0x7f,0x00]301// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU302 303global_atomic_swap_x2 v[3:4], v[5:6], off304// GFX10: encoding: [0x00,0x80,0x40,0xdd,0x03,0x05,0x7d,0x00]305// GFX9: global_atomic_swap_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x80,0xdd,0x03,0x05,0x7f,0x00]306// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU307 308global_atomic_add v[3:4], v5, off309// GFX10: encoding: [0x00,0x80,0xc8,0xdc,0x03,0x05,0x7d,0x00]310// GFX9: global_atomic_add v[3:4], v5, off ; encoding: [0x00,0x80,0x08,0xdd,0x03,0x05,0x7f,0x00]311// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU312 313global_atomic_sub v[3:4], v5, off314// GFX10: encoding: [0x00,0x80,0xcc,0xdc,0x03,0x05,0x7d,0x00]315// GFX9: global_atomic_sub v[3:4], v5, off ; encoding: [0x00,0x80,0x0c,0xdd,0x03,0x05,0x7f,0x00]316// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU317 318global_atomic_smin v[3:4], v5, off319// GFX10: encoding: [0x00,0x80,0xd4,0xdc,0x03,0x05,0x7d,0x00]320// GFX9: global_atomic_smin v[3:4], v5, off ; encoding: [0x00,0x80,0x10,0xdd,0x03,0x05,0x7f,0x00]321// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU322 323global_atomic_umin v[3:4], v5, off324// GFX10: encoding: [0x00,0x80,0xd8,0xdc,0x03,0x05,0x7d,0x00]325// GFX9: global_atomic_umin v[3:4], v5, off ; encoding: [0x00,0x80,0x14,0xdd,0x03,0x05,0x7f,0x00]326// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU327 328global_atomic_smax v[3:4], v5, off329// GFX10: encoding: [0x00,0x80,0xdc,0xdc,0x03,0x05,0x7d,0x00]330// GFX9: global_atomic_smax v[3:4], v5, off ; encoding: [0x00,0x80,0x18,0xdd,0x03,0x05,0x7f,0x00]331// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU332 333global_atomic_umax v[3:4], v5, off334// GFX10: encoding: [0x00,0x80,0xe0,0xdc,0x03,0x05,0x7d,0x00]335// GFX9: global_atomic_umax v[3:4], v5, off ; encoding: [0x00,0x80,0x1c,0xdd,0x03,0x05,0x7f,0x00]336// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU337 338global_atomic_and v[3:4], v5, off339// GFX10: encoding: [0x00,0x80,0xe4,0xdc,0x03,0x05,0x7d,0x00]340// GFX9: global_atomic_and v[3:4], v5, off ; encoding: [0x00,0x80,0x20,0xdd,0x03,0x05,0x7f,0x00]341// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU342 343global_atomic_or v[3:4], v5, off344// GFX10: encoding: [0x00,0x80,0xe8,0xdc,0x03,0x05,0x7d,0x00]345// GFX9: global_atomic_or v[3:4], v5, off ; encoding: [0x00,0x80,0x24,0xdd,0x03,0x05,0x7f,0x00]346// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU347 348global_atomic_xor v[3:4], v5, off349// GFX10: encoding: [0x00,0x80,0xec,0xdc,0x03,0x05,0x7d,0x00]350// GFX9: global_atomic_xor v[3:4], v5, off ; encoding: [0x00,0x80,0x28,0xdd,0x03,0x05,0x7f,0x00]351// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU352 353global_atomic_inc v[3:4], v5, off354// GFX10: encoding: [0x00,0x80,0xf0,0xdc,0x03,0x05,0x7d,0x00]355// GFX9: global_atomic_inc v[3:4], v5, off ; encoding: [0x00,0x80,0x2c,0xdd,0x03,0x05,0x7f,0x00]356// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU357 358global_atomic_dec v[3:4], v5, off359// GFX10: encoding: [0x00,0x80,0xf4,0xdc,0x03,0x05,0x7d,0x00]360// GFX9: global_atomic_dec v[3:4], v5, off ; encoding: [0x00,0x80,0x30,0xdd,0x03,0x05,0x7f,0x00]361// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU362 363global_atomic_add_x2 v[3:4], v[5:6], off364// GFX10: encoding: [0x00,0x80,0x48,0xdd,0x03,0x05,0x7d,0x00]365// GFX9: global_atomic_add_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x88,0xdd,0x03,0x05,0x7f,0x00]366// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU367 368global_atomic_sub_x2 v[3:4], v[5:6], off369// GFX10: encoding: [0x00,0x80,0x4c,0xdd,0x03,0x05,0x7d,0x00]370// GFX9: global_atomic_sub_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x8c,0xdd,0x03,0x05,0x7f,0x00]371// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU372 373global_atomic_smin_x2 v[3:4], v[5:6], off374// GFX10: encoding: [0x00,0x80,0x54,0xdd,0x03,0x05,0x7d,0x00]375// GFX9: global_atomic_smin_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x90,0xdd,0x03,0x05,0x7f,0x00]376// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU377 378global_atomic_umin_x2 v[3:4], v[5:6], off379// GFX10: encoding: [0x00,0x80,0x58,0xdd,0x03,0x05,0x7d,0x00]380// GFX9: global_atomic_umin_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x94,0xdd,0x03,0x05,0x7f,0x00]381// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU382 383global_atomic_smax_x2 v[3:4], v[5:6], off384// GFX10: encoding: [0x00,0x80,0x5c,0xdd,0x03,0x05,0x7d,0x00]385// GFX9: global_atomic_smax_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x98,0xdd,0x03,0x05,0x7f,0x00]386// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU387 388global_atomic_umax_x2 v[3:4], v[5:6], off389// GFX10: encoding: [0x00,0x80,0x60,0xdd,0x03,0x05,0x7d,0x00]390// GFX9: global_atomic_umax_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0x9c,0xdd,0x03,0x05,0x7f,0x00]391// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU392 393global_atomic_and_x2 v[3:4], v[5:6], off394// GFX10: encoding: [0x00,0x80,0x64,0xdd,0x03,0x05,0x7d,0x00]395// GFX9: global_atomic_and_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xa0,0xdd,0x03,0x05,0x7f,0x00]396// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU397 398global_atomic_or_x2 v[3:4], v[5:6], off399// GFX10: encoding: [0x00,0x80,0x68,0xdd,0x03,0x05,0x7d,0x00]400// GFX9: global_atomic_or_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xa4,0xdd,0x03,0x05,0x7f,0x00]401// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU402 403global_atomic_xor_x2 v[3:4], v[5:6], off404// GFX10: encoding: [0x00,0x80,0x6c,0xdd,0x03,0x05,0x7d,0x00]405// GFX9: global_atomic_xor_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xa8,0xdd,0x03,0x05,0x7f,0x00]406// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU407 408global_atomic_inc_x2 v[3:4], v[5:6], off409// GFX10: encoding: [0x00,0x80,0x70,0xdd,0x03,0x05,0x7d,0x00]410// GFX9: global_atomic_inc_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xac,0xdd,0x03,0x05,0x7f,0x00]411// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU412 413global_atomic_dec_x2 v[3:4], v[5:6], off414// GFX10: encoding: [0x00,0x80,0x74,0xdd,0x03,0x05,0x7d,0x00]415// GFX9: global_atomic_dec_x2 v[3:4], v[5:6], off ; encoding: [0x00,0x80,0xb0,0xdd,0x03,0x05,0x7f,0x00]416// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU417 418global_atomic_cmpswap v[3:4], v[5:6], off offset:-16419// GFX10: encoding: [0xf0,0x8f,0xc4,0xdc,0x03,0x05,0x7d,0x00]420// GFX9: global_atomic_cmpswap v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x04,0xdd,0x03,0x05,0x7f,0x00]421// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU422 423global_atomic_cmpswap v1, v[3:4], v[5:6], off offset:-16 glc424// GFX10: encoding: [0xf0,0x8f,0xc5,0xdc,0x03,0x05,0x7d,0x01]425// GFX9: global_atomic_cmpswap v1, v[3:4], v[5:6], off offset:-16 glc ; encoding: [0xf0,0x9f,0x05,0xdd,0x03,0x05,0x7f,0x01]426// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU427 428global_atomic_cmpswap v1, v3, v[5:6], s[2:3] offset:-16 glc429// GFX10: encoding: [0xf0,0x8f,0xc5,0xdc,0x03,0x05,0x02,0x01]430// GFX9: global_atomic_cmpswap v1, v3, v[5:6], s[2:3] offset:-16 glc ; encoding: [0xf0,0x9f,0x05,0xdd,0x03,0x05,0x02,0x01]431// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU432 433global_atomic_cmpswap_x2 v[5:6], v[7:10], off offset:-16434// GFX10: encoding: [0xf0,0x8f,0x44,0xdd,0x05,0x07,0x7d,0x00]435// GFX9: global_atomic_cmpswap_x2 v[5:6], v[7:10], off offset:-16 ; encoding: [0xf0,0x9f,0x84,0xdd,0x05,0x07,0x7f,0x00]436// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU437 438global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off offset:-16 glc439// GFX10: encoding: [0xf0,0x8f,0x45,0xdd,0x05,0x07,0x7d,0x01]440// GFX9: global_atomic_cmpswap_x2 v[1:2], v[5:6], v[7:10], off offset:-16 glc ; encoding: [0xf0,0x9f,0x85,0xdd,0x05,0x07,0x7f,0x01]441// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU442 443global_atomic_cmpswap_x2 v[1:2], v5, v[7:10], s[2:3] offset:-16 glc444// GFX10: encoding: [0xf0,0x8f,0x45,0xdd,0x05,0x07,0x02,0x01]445// GFX9: global_atomic_cmpswap_x2 v[1:2], v5, v[7:10], s[2:3] offset:-16 glc ; encoding: [0xf0,0x9f,0x85,0xdd,0x05,0x07,0x02,0x01]446// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU447 448global_atomic_swap v[3:4], v5, off offset:-16449// GFX10: encoding: [0xf0,0x8f,0xc0,0xdc,0x03,0x05,0x7d,0x00]450// GFX9: global_atomic_swap v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x00,0xdd,0x03,0x05,0x7f,0x00]451// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU452 453global_atomic_swap_x2 v[3:4], v[5:6], off offset:-16454// GFX10: encoding: [0xf0,0x8f,0x40,0xdd,0x03,0x05,0x7d,0x00]455// GFX9: global_atomic_swap_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x80,0xdd,0x03,0x05,0x7f,0x00]456// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU457 458global_atomic_add v[3:4], v5, off offset:-16459// GFX10: encoding: [0xf0,0x8f,0xc8,0xdc,0x03,0x05,0x7d,0x00]460// GFX9: global_atomic_add v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x08,0xdd,0x03,0x05,0x7f,0x00]461// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU462 463global_atomic_sub v[3:4], v5, off offset:-16464// GFX10: encoding: [0xf0,0x8f,0xcc,0xdc,0x03,0x05,0x7d,0x00]465// GFX9: global_atomic_sub v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x0c,0xdd,0x03,0x05,0x7f,0x00]466// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU467 468global_atomic_smin v[3:4], v5, off offset:-16469// GFX10: encoding: [0xf0,0x8f,0xd4,0xdc,0x03,0x05,0x7d,0x00]470// GFX9: global_atomic_smin v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x10,0xdd,0x03,0x05,0x7f,0x00]471// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU472 473global_atomic_umin v[3:4], v5, off offset:-16474// GFX10: encoding: [0xf0,0x8f,0xd8,0xdc,0x03,0x05,0x7d,0x00]475// GFX9: global_atomic_umin v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x14,0xdd,0x03,0x05,0x7f,0x00]476// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU477 478global_atomic_smax v[3:4], v5, off offset:-16479// GFX10: encoding: [0xf0,0x8f,0xdc,0xdc,0x03,0x05,0x7d,0x00]480// GFX9: global_atomic_smax v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x18,0xdd,0x03,0x05,0x7f,0x00]481// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU482 483global_atomic_umax v[3:4], v5, off offset:-16484// GFX10: encoding: [0xf0,0x8f,0xe0,0xdc,0x03,0x05,0x7d,0x00]485// GFX9: global_atomic_umax v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x1c,0xdd,0x03,0x05,0x7f,0x00]486// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU487 488global_atomic_and v[3:4], v5, off offset:-16489// GFX10: encoding: [0xf0,0x8f,0xe4,0xdc,0x03,0x05,0x7d,0x00]490// GFX9: global_atomic_and v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x20,0xdd,0x03,0x05,0x7f,0x00]491// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU492 493global_atomic_or v[3:4], v5, off offset:-16494// GFX10: encoding: [0xf0,0x8f,0xe8,0xdc,0x03,0x05,0x7d,0x00]495// GFX9: global_atomic_or v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x24,0xdd,0x03,0x05,0x7f,0x00]496// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU497 498global_atomic_xor v[3:4], v5, off offset:-16499// GFX10: encoding: [0xf0,0x8f,0xec,0xdc,0x03,0x05,0x7d,0x00]500// GFX9: global_atomic_xor v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x28,0xdd,0x03,0x05,0x7f,0x00]501// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU502 503global_atomic_inc v[3:4], v5, off offset:-16504// GFX10: encoding: [0xf0,0x8f,0xf0,0xdc,0x03,0x05,0x7d,0x00]505// GFX9: global_atomic_inc v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x2c,0xdd,0x03,0x05,0x7f,0x00]506// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU507 508global_atomic_dec v[3:4], v5, off offset:-16509// GFX10: encoding: [0xf0,0x8f,0xf4,0xdc,0x03,0x05,0x7d,0x00]510// GFX9: global_atomic_dec v[3:4], v5, off offset:-16 ; encoding: [0xf0,0x9f,0x30,0xdd,0x03,0x05,0x7f,0x00]511// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU512 513global_atomic_add_x2 v[3:4], v[5:6], off offset:-16514// GFX10: encoding: [0xf0,0x8f,0x48,0xdd,0x03,0x05,0x7d,0x00]515// GFX9: global_atomic_add_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x88,0xdd,0x03,0x05,0x7f,0x00]516// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU517 518global_atomic_sub_x2 v[3:4], v[5:6], off offset:-16519// GFX10: encoding: [0xf0,0x8f,0x4c,0xdd,0x03,0x05,0x7d,0x00]520// GFX9: global_atomic_sub_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x8c,0xdd,0x03,0x05,0x7f,0x00]521// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU522 523global_atomic_smin_x2 v[3:4], v[5:6], off offset:-16524// GFX10: encoding: [0xf0,0x8f,0x54,0xdd,0x03,0x05,0x7d,0x00]525// GFX9: global_atomic_smin_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x90,0xdd,0x03,0x05,0x7f,0x00]526// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU527 528global_atomic_umin_x2 v[3:4], v[5:6], off offset:-16529// GFX10: encoding: [0xf0,0x8f,0x58,0xdd,0x03,0x05,0x7d,0x00]530// GFX9: global_atomic_umin_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x94,0xdd,0x03,0x05,0x7f,0x00]531// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU532 533global_atomic_smax_x2 v[3:4], v[5:6], off offset:-16534// GFX10: encoding: [0xf0,0x8f,0x5c,0xdd,0x03,0x05,0x7d,0x00]535// GFX9: global_atomic_smax_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x98,0xdd,0x03,0x05,0x7f,0x00]536// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU537 538global_atomic_umax_x2 v[3:4], v[5:6], off offset:-16539// GFX10: encoding: [0xf0,0x8f,0x60,0xdd,0x03,0x05,0x7d,0x00]540// GFX9: global_atomic_umax_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0x9c,0xdd,0x03,0x05,0x7f,0x00]541// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU542 543global_atomic_and_x2 v[3:4], v[5:6], off offset:-16544// GFX10: encoding: [0xf0,0x8f,0x64,0xdd,0x03,0x05,0x7d,0x00]545// GFX9: global_atomic_and_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xa0,0xdd,0x03,0x05,0x7f,0x00]546// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU547 548global_atomic_or_x2 v[3:4], v[5:6], off offset:-16549// GFX10: encoding: [0xf0,0x8f,0x68,0xdd,0x03,0x05,0x7d,0x00]550// GFX9: global_atomic_or_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xa4,0xdd,0x03,0x05,0x7f,0x00]551// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU552 553global_atomic_xor_x2 v[3:4], v[5:6], off offset:-16554// GFX10: encoding: [0xf0,0x8f,0x6c,0xdd,0x03,0x05,0x7d,0x00]555// GFX9: global_atomic_xor_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xa8,0xdd,0x03,0x05,0x7f,0x00]556// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU557 558global_atomic_inc_x2 v[3:4], v[5:6], off offset:-16559// GFX10: encoding: [0xf0,0x8f,0x70,0xdd,0x03,0x05,0x7d,0x00]560// GFX9: global_atomic_inc_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xac,0xdd,0x03,0x05,0x7f,0x00]561// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU562 563global_atomic_dec_x2 v[3:4], v[5:6], off offset:-16564// GFX10: encoding: [0xf0,0x8f,0x74,0xdd,0x03,0x05,0x7d,0x00]565// GFX9: global_atomic_dec_x2 v[3:4], v[5:6], off offset:-16 ; encoding: [0xf0,0x9f,0xb0,0xdd,0x03,0x05,0x7f,0x00]566// VI-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU567 568global_load_ubyte_d16 v1, v[3:4], off569// GFX10: encoding: [0x00,0x80,0x80,0xdc,0x03,0x00,0x7d,0x01]570// GFX9: global_load_ubyte_d16 v1, v[3:4], off ; encoding: [0x00,0x80,0x80,0xdc,0x03,0x00,0x7f,0x01]571// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU572 573global_load_ubyte_d16_hi v1, v[3:4], off574// GFX10: encoding: [0x00,0x80,0x84,0xdc,0x03,0x00,0x7d,0x01]575// GFX9: global_load_ubyte_d16_hi v1, v[3:4], off ; encoding: [0x00,0x80,0x84,0xdc,0x03,0x00,0x7f,0x01]576// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU577 578global_load_sbyte_d16 v1, v[3:4], off579// GFX10: encoding: [0x00,0x80,0x88,0xdc,0x03,0x00,0x7d,0x01]580// GFX9: global_load_sbyte_d16 v1, v[3:4], off ; encoding: [0x00,0x80,0x88,0xdc,0x03,0x00,0x7f,0x01]581// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU582 583global_load_sbyte_d16_hi v1, v[3:4], off584// GFX10: encoding: [0x00,0x80,0x8c,0xdc,0x03,0x00,0x7d,0x01]585// GFX9: global_load_sbyte_d16_hi v1, v[3:4], off ; encoding: [0x00,0x80,0x8c,0xdc,0x03,0x00,0x7f,0x01]586// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU587 588global_load_short_d16 v1, v[3:4], off589// GFX10: encoding: [0x00,0x80,0x90,0xdc,0x03,0x00,0x7d,0x01]590// GFX9: global_load_short_d16 v1, v[3:4], off ; encoding: [0x00,0x80,0x90,0xdc,0x03,0x00,0x7f,0x01]591// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU592 593global_load_short_d16_hi v1, v[3:4], off594// GFX10: encoding: [0x00,0x80,0x94,0xdc,0x03,0x00,0x7d,0x01]595// GFX9: global_load_short_d16_hi v1, v[3:4], off ; encoding: [0x00,0x80,0x94,0xdc,0x03,0x00,0x7f,0x01]596// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU597 598global_store_byte_d16_hi v[3:4], v1, off599// GFX10: encoding: [0x00,0x80,0x64,0xdc,0x03,0x01,0x7d,0x00]600// GFX9: global_store_byte_d16_hi v[3:4], v1, off ; encoding: [0x00,0x80,0x64,0xdc,0x03,0x01,0x7f,0x00]601// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU602 603global_store_short_d16_hi v[3:4], v1, off604// GFX10: encoding: [0x00,0x80,0x6c,0xdc,0x03,0x01,0x7d,0x00]605// GFX9: global_store_short_d16_hi v[3:4], v1, off ; encoding: [0x00,0x80,0x6c,0xdc,0x03,0x01,0x7f,0x00]606// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU607 608global_atomic_add v0, v[1:2], v2, off glc slc609// GFX10: global_atomic_add v0, v[1:2], v2, off glc slc ; encoding: [0x00,0x80,0xcb,0xdc,0x01,0x02,0x7d,0x00]610// GFX9: global_atomic_add v0, v[1:2], v2, off glc slc ; encoding: [0x00,0x80,0x0b,0xdd,0x01,0x02,0x7f,0x00]611// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU612