428 lines · plain
1// RUN: llvm-mc -triple=amdgcn -mcpu=bonaire -show-encoding %s | FileCheck %s --check-prefix=CIVI --check-prefix=CI2// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga -show-encoding %s | FileCheck %s --check-prefix=CIVI --check-prefix=VI3 4// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga %s 2>&1 | FileCheck %s --check-prefix=NOVI --implicit-check-not=error:5// RUN: not llvm-mc -triple=amdgcn %s 2>&1 | FileCheck %s --check-prefix=NOSI --implicit-check-not=error:6// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck %s --check-prefix=NOSI --implicit-check-not=error:7 8//===----------------------------------------------------------------------===//9// Operands10//===----------------------------------------------------------------------===//11 12flat_load_dword v1, v[3:4]13// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU14// CI: flat_load_dword v1, v[3:4] ; encoding: [0x00,0x00,0x30,0xdc,0x03,0x00,0x00,0x01]15// VI: flat_load_dword v1, v[3:4] ; encoding: [0x00,0x00,0x50,0xdc,0x03,0x00,0x00,0x01]16 17flat_load_dword v1, v[3:4] glc18// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU19// CI: flat_load_dword v1, v[3:4] glc ; encoding: [0x00,0x00,0x31,0xdc,0x03,0x00,0x00,0x01]20// VI: flat_load_dword v1, v[3:4] glc ; encoding: [0x00,0x00,0x51,0xdc,0x03,0x00,0x00,0x01]21 22flat_load_dword v1, v[3:4] glc slc23// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU24// CI: flat_load_dword v1, v[3:4] glc slc ; encoding: [0x00,0x00,0x33,0xdc,0x03,0x00,0x00,0x01]25// VI: flat_load_dword v1, v[3:4] glc slc ; encoding: [0x00,0x00,0x53,0xdc,0x03,0x00,0x00,0x01]26 27flat_store_dword v[3:4], v128// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU29// CIVI: flat_store_dword v[3:4], v1 ; encoding: [0x00,0x00,0x70,0xdc,0x03,0x01,0x00,0x00]30 31flat_store_dword v[3:4], v1 glc32// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU33// CIVI: flat_store_dword v[3:4], v1 glc ; encoding: [0x00,0x00,0x71,0xdc,0x03,0x01,0x00,0x00]34 35flat_store_dword v[3:4], v1 glc slc36// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU37// CIVI: flat_store_dword v[3:4], v1 glc slc ; encoding: [0x00,0x00,0x73,0xdc,0x03,0x01,0x00,0x00]38 39 40flat_store_dword v[3:4], v1 slc41// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU42// CIVI: flat_store_dword v[3:4], v1 slc ; encoding: [0x00,0x00,0x72,0xdc,0x03,0x01,0x00,0x00]43 44// FIXME: For atomic instructions, glc must be placed immediately following45// the data regiser. These forms aren't currently supported:46// FIXME: offset:0 required47// flat_atomic_add v1, v[3:4], v5 slc glc48 49flat_atomic_add v1, v[3:4], v5 offset:0 glc slc50// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU51// CI: flat_atomic_add v1, v[3:4], v5 glc slc ; encoding: [0x00,0x00,0xcb,0xdc,0x03,0x05,0x00,0x01]52// VI: flat_atomic_add v1, v[3:4], v5 glc slc ; encoding: [0x00,0x00,0x0b,0xdd,0x03,0x05,0x00,0x01]53 54flat_atomic_add v[3:4], v5 slc55// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU56// CI: flat_atomic_add v[3:4], v5 slc ; encoding: [0x00,0x00,0xca,0xdc,0x03,0x05,0x00,0x00]57// VI: flat_atomic_add v[3:4], v5 slc ; encoding: [0x00,0x00,0x0a,0xdd,0x03,0x05,0x00,0x00]58 59//===----------------------------------------------------------------------===//60// Instructions61//===----------------------------------------------------------------------===//62 63flat_load_ubyte v1, v[3:4]64// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU65// CI: flat_load_ubyte v1, v[3:4] ; encoding: [0x00,0x00,0x20,0xdc,0x03,0x00,0x00,0x01]66// VI: flat_load_ubyte v1, v[3:4] ; encoding: [0x00,0x00,0x40,0xdc,0x03,0x00,0x00,0x01]67 68flat_load_sbyte v1, v[3:4]69// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU70// CI: flat_load_sbyte v1, v[3:4] ; encoding: [0x00,0x00,0x24,0xdc,0x03,0x00,0x00,0x01]71// VI: flat_load_sbyte v1, v[3:4] ; encoding: [0x00,0x00,0x44,0xdc,0x03,0x00,0x00,0x01]72 73flat_load_ushort v1, v[3:4]74// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU75// CI: flat_load_ushort v1, v[3:4] ; encoding: [0x00,0x00,0x28,0xdc,0x03,0x00,0x00,0x01]76// VI: flat_load_ushort v1, v[3:4] ; encoding: [0x00,0x00,0x48,0xdc,0x03,0x00,0x00,0x01]77 78flat_load_sshort v1, v[3:4]79// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU80// CI: flat_load_sshort v1, v[3:4] ; encoding: [0x00,0x00,0x2c,0xdc,0x03,0x00,0x00,0x01]81// VI: flat_load_sshort v1, v[3:4] ; encoding: [0x00,0x00,0x4c,0xdc,0x03,0x00,0x00,0x01]82 83flat_load_dword v1, v[3:4]84// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU85// CI: flat_load_dword v1, v[3:4] ; encoding: [0x00,0x00,0x30,0xdc,0x03,0x00,0x00,0x01]86// VI: flat_load_dword v1, v[3:4] ; encoding: [0x00,0x00,0x50,0xdc,0x03,0x00,0x00,0x01]87 88flat_load_dwordx2 v[1:2], v[3:4]89// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU90// CI: flat_load_dwordx2 v[1:2], v[3:4] ; encoding: [0x00,0x00,0x34,0xdc,0x03,0x00,0x00,0x01]91// VI: flat_load_dwordx2 v[1:2], v[3:4] ; encoding: [0x00,0x00,0x54,0xdc,0x03,0x00,0x00,0x01]92 93flat_load_dwordx4 v[5:8], v[3:4]94// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU95// CI: flat_load_dwordx4 v[5:8], v[3:4] ; encoding: [0x00,0x00,0x38,0xdc,0x03,0x00,0x00,0x05]96// VI: flat_load_dwordx4 v[5:8], v[3:4] ; encoding: [0x00,0x00,0x5c,0xdc,0x03,0x00,0x00,0x05]97 98flat_load_dwordx3 v[5:7], v[3:4]99// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU100// CI: flat_load_dwordx3 v[5:7], v[3:4] ; encoding: [0x00,0x00,0x3c,0xdc,0x03,0x00,0x00,0x05]101// VI: flat_load_dwordx3 v[5:7], v[3:4] ; encoding: [0x00,0x00,0x58,0xdc,0x03,0x00,0x00,0x05]102 103flat_store_byte v[3:4], v1104// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU105// CIVI: flat_store_byte v[3:4], v1 ; encoding: [0x00,0x00,0x60,0xdc,0x03,0x01,0x00,0x00]106 107flat_store_short v[3:4], v1108// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU109// CIVI: flat_store_short v[3:4], v1 ; encoding: [0x00,0x00,0x68,0xdc,0x03,0x01,0x00,0x00]110 111flat_store_dword v[3:4], v1112// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU113// CIVI: flat_store_dword v[3:4], v1 ; encoding: [0x00,0x00,0x70,0xdc,0x03,0x01,0x00,0x00]114 115flat_store_dwordx2 v[3:4], v[1:2]116// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU117// CIVI: flat_store_dwordx2 v[3:4], v[1:2] ; encoding: [0x00,0x00,0x74,0xdc,0x03,0x01,0x00,0x00]118 119flat_store_dwordx4 v[3:4], v[5:8]120// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU121// CI: flat_store_dwordx4 v[3:4], v[5:8] ; encoding: [0x00,0x00,0x78,0xdc,0x03,0x05,0x00,0x00]122// VI: flat_store_dwordx4 v[3:4], v[5:8] ; encoding: [0x00,0x00,0x7c,0xdc,0x03,0x05,0x00,0x00]123 124flat_store_dwordx3 v[3:4], v[5:7]125// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU126// CI: flat_store_dwordx3 v[3:4], v[5:7] ; encoding: [0x00,0x00,0x7c,0xdc,0x03,0x05,0x00,0x00]127// VI: flat_store_dwordx3 v[3:4], v[5:7] ; encoding: [0x00,0x00,0x78,0xdc,0x03,0x05,0x00,0x00]128 129flat_atomic_swap v[3:4], v5130// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU131// CI: flat_atomic_swap v[3:4], v5 ; encoding: [0x00,0x00,0xc0,0xdc,0x03,0x05,0x00,0x00]132// VI: flat_atomic_swap v[3:4], v5 ; encoding: [0x00,0x00,0x00,0xdd,0x03,0x05,0x00,0x00]133 134flat_atomic_swap v1, v[3:4], v5 glc135// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU136// CI: flat_atomic_swap v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xc1,0xdc,0x03,0x05,0x00,0x01]137// VI: flat_atomic_swap v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x01,0xdd,0x03,0x05,0x00,0x01]138 139flat_atomic_cmpswap v[3:4], v[5:6]140// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU141// CI: flat_atomic_cmpswap v[3:4], v[5:6] ; encoding: [0x00,0x00,0xc4,0xdc,0x03,0x05,0x00,0x00]142// VI: flat_atomic_cmpswap v[3:4], v[5:6] ; encoding: [0x00,0x00,0x04,0xdd,0x03,0x05,0x00,0x00]143 144flat_atomic_cmpswap v1, v[3:4], v[5:6] glc145// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU146// CI: flat_atomic_cmpswap v1, v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0xc5,0xdc,0x03,0x05,0x00,0x01]147// VI: flat_atomic_cmpswap v1, v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x05,0xdd,0x03,0x05,0x00,0x01]148 149flat_atomic_add v[3:4], v5150// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU151// CI: flat_atomic_add v[3:4], v5 ; encoding: [0x00,0x00,0xc8,0xdc,0x03,0x05,0x00,0x00]152// VI: flat_atomic_add v[3:4], v5 ; encoding: [0x00,0x00,0x08,0xdd,0x03,0x05,0x00,0x00]153 154flat_atomic_add v1, v[3:4], v5 glc155// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU156// CI: flat_atomic_add v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xc9,0xdc,0x03,0x05,0x00,0x01]157// VI: flat_atomic_add v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x09,0xdd,0x03,0x05,0x00,0x01]158 159flat_atomic_sub v[3:4], v5160// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU161// CI: flat_atomic_sub v[3:4], v5 ; encoding: [0x00,0x00,0xcc,0xdc,0x03,0x05,0x00,0x00]162// VI: flat_atomic_sub v[3:4], v5 ; encoding: [0x00,0x00,0x0c,0xdd,0x03,0x05,0x00,0x00]163 164flat_atomic_sub v1, v[3:4], v5 glc165// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU166// CI: flat_atomic_sub v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xcd,0xdc,0x03,0x05,0x00,0x01]167// VI: flat_atomic_sub v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x0d,0xdd,0x03,0x05,0x00,0x01]168 169flat_atomic_smin v[3:4], v5170// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU171// CI: flat_atomic_smin v[3:4], v5 ; encoding: [0x00,0x00,0xd4,0xdc,0x03,0x05,0x00,0x00]172// VI: flat_atomic_smin v[3:4], v5 ; encoding: [0x00,0x00,0x10,0xdd,0x03,0x05,0x00,0x00]173 174flat_atomic_smin v1, v[3:4], v5 glc175// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU176// CI: flat_atomic_smin v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xd5,0xdc,0x03,0x05,0x00,0x01]177// VI: flat_atomic_smin v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x11,0xdd,0x03,0x05,0x00,0x01]178 179flat_atomic_umin v[3:4], v5180// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU181// CI: flat_atomic_umin v[3:4], v5 ; encoding: [0x00,0x00,0xd8,0xdc,0x03,0x05,0x00,0x00]182// VI: flat_atomic_umin v[3:4], v5 ; encoding: [0x00,0x00,0x14,0xdd,0x03,0x05,0x00,0x00]183 184flat_atomic_umin v1, v[3:4], v5 glc185// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU186// CI: flat_atomic_umin v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xd9,0xdc,0x03,0x05,0x00,0x01]187// VI: flat_atomic_umin v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x15,0xdd,0x03,0x05,0x00,0x01]188 189flat_atomic_smax v[3:4], v5,190// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU191// CI: flat_atomic_smax v[3:4], v5 ; encoding: [0x00,0x00,0xdc,0xdc,0x03,0x05,0x00,0x00]192// VI: flat_atomic_smax v[3:4], v5 ; encoding: [0x00,0x00,0x18,0xdd,0x03,0x05,0x00,0x00]193 194flat_atomic_smax v1, v[3:4], v5 glc195// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU196// CI: flat_atomic_smax v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xdd,0xdc,0x03,0x05,0x00,0x01]197// VI: flat_atomic_smax v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x19,0xdd,0x03,0x05,0x00,0x01]198 199flat_atomic_umax v[3:4], v5200// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU201// CI: flat_atomic_umax v[3:4], v5 ; encoding: [0x00,0x00,0xe0,0xdc,0x03,0x05,0x00,0x00]202// VI: flat_atomic_umax v[3:4], v5 ; encoding: [0x00,0x00,0x1c,0xdd,0x03,0x05,0x00,0x00]203 204flat_atomic_umax v1, v[3:4], v5 glc205// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU206// CI: flat_atomic_umax v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xe1,0xdc,0x03,0x05,0x00,0x01]207// VI: flat_atomic_umax v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x1d,0xdd,0x03,0x05,0x00,0x01]208 209flat_atomic_and v[3:4], v5210// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU211// CI: flat_atomic_and v[3:4], v5 ; encoding: [0x00,0x00,0xe4,0xdc,0x03,0x05,0x00,0x00]212// VI: flat_atomic_and v[3:4], v5 ; encoding: [0x00,0x00,0x20,0xdd,0x03,0x05,0x00,0x00]213 214flat_atomic_and v1, v[3:4], v5 glc215// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU216// CI: flat_atomic_and v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xe5,0xdc,0x03,0x05,0x00,0x01]217// VI: flat_atomic_and v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x21,0xdd,0x03,0x05,0x00,0x01]218 219flat_atomic_or v[3:4], v5220// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU221// CI: flat_atomic_or v[3:4], v5 ; encoding: [0x00,0x00,0xe8,0xdc,0x03,0x05,0x00,0x00]222// VI: flat_atomic_or v[3:4], v5 ; encoding: [0x00,0x00,0x24,0xdd,0x03,0x05,0x00,0x00]223 224flat_atomic_or v1, v[3:4], v5 glc225// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU226// CI: flat_atomic_or v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xe9,0xdc,0x03,0x05,0x00,0x01]227// VI: flat_atomic_or v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x25,0xdd,0x03,0x05,0x00,0x01]228 229flat_atomic_xor v[3:4], v5230// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU231// CI: flat_atomic_xor v[3:4], v5 ; encoding: [0x00,0x00,0xec,0xdc,0x03,0x05,0x00,0x00]232// VI: flat_atomic_xor v[3:4], v5 ; encoding: [0x00,0x00,0x28,0xdd,0x03,0x05,0x00,0x00]233 234flat_atomic_xor v1, v[3:4], v5 glc235// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU236// CI: flat_atomic_xor v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xed,0xdc,0x03,0x05,0x00,0x01]237// VI: flat_atomic_xor v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x29,0xdd,0x03,0x05,0x00,0x01]238 239flat_atomic_inc v[3:4], v5240// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU241// CI: flat_atomic_inc v[3:4], v5 ; encoding: [0x00,0x00,0xf0,0xdc,0x03,0x05,0x00,0x00]242// VI: flat_atomic_inc v[3:4], v5 ; encoding: [0x00,0x00,0x2c,0xdd,0x03,0x05,0x00,0x00]243 244flat_atomic_inc v1, v[3:4], v5 glc245// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU246// CI: flat_atomic_inc v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xf1,0xdc,0x03,0x05,0x00,0x01]247// VI: flat_atomic_inc v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x2d,0xdd,0x03,0x05,0x00,0x01]248 249flat_atomic_dec v[3:4], v5250// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU251// CI: flat_atomic_dec v[3:4], v5 ; encoding: [0x00,0x00,0xf4,0xdc,0x03,0x05,0x00,0x00]252// VI: flat_atomic_dec v[3:4], v5 ; encoding: [0x00,0x00,0x30,0xdd,0x03,0x05,0x00,0x00]253 254flat_atomic_dec v1, v[3:4], v5 glc255// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU256// CI: flat_atomic_dec v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0xf5,0xdc,0x03,0x05,0x00,0x01]257// VI: flat_atomic_dec v1, v[3:4], v5 glc ; encoding: [0x00,0x00,0x31,0xdd,0x03,0x05,0x00,0x01]258 259flat_atomic_fcmpswap v[3:4], v[5:6]260// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU261// CI: flat_atomic_fcmpswap v[3:4], v[5:6] ; encoding: [0x00,0x00,0xf8,0xdc,0x03,0x05,0x00,0x00]262// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU263 264flat_atomic_fcmpswap v1, v[3:4], v[5:6] glc265// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU266// CI: flat_atomic_fcmpswap v1, v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0xf9,0xdc,0x03,0x05,0x00,0x01]267// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU268 269flat_atomic_swap_x2 v[3:4], v[5:6]270// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU271// CI: flat_atomic_swap_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x40,0xdd,0x03,0x05,0x00,0x00]272// VI: flat_atomic_swap_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x80,0xdd,0x03,0x05,0x00,0x00]273 274flat_atomic_swap_x2 v[1:2], v[3:4], v[5:6] glc275// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU276// CI: flat_atomic_swap_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x41,0xdd,0x03,0x05,0x00,0x01]277// VI: flat_atomic_swap_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x81,0xdd,0x03,0x05,0x00,0x01]278 279flat_atomic_cmpswap_x2 v[3:4], v[5:8]280// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU281// CI: flat_atomic_cmpswap_x2 v[3:4], v[5:8] ; encoding: [0x00,0x00,0x44,0xdd,0x03,0x05,0x00,0x00]282// VI: flat_atomic_cmpswap_x2 v[3:4], v[5:8] ; encoding: [0x00,0x00,0x84,0xdd,0x03,0x05,0x00,0x00]283 284flat_atomic_cmpswap_x2 v[1:2], v[3:4], v[5:8] glc285// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU286// CI: flat_atomic_cmpswap_x2 v[1:2], v[3:4], v[5:8] glc ; encoding: [0x00,0x00,0x45,0xdd,0x03,0x05,0x00,0x01]287// VI: flat_atomic_cmpswap_x2 v[1:2], v[3:4], v[5:8] glc ; encoding: [0x00,0x00,0x85,0xdd,0x03,0x05,0x00,0x01]288 289flat_atomic_add_x2 v[3:4], v[5:6]290// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU291// CI: flat_atomic_add_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x48,0xdd,0x03,0x05,0x00,0x00]292// VI: flat_atomic_add_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x88,0xdd,0x03,0x05,0x00,0x00]293 294flat_atomic_add_x2 v[1:2], v[3:4], v[5:6] glc295// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU296// CI: flat_atomic_add_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x49,0xdd,0x03,0x05,0x00,0x01]297// VI: flat_atomic_add_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x89,0xdd,0x03,0x05,0x00,0x01]298 299flat_atomic_sub_x2 v[3:4], v[5:6]300// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU301// CI: flat_atomic_sub_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x4c,0xdd,0x03,0x05,0x00,0x00]302// VI: flat_atomic_sub_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x8c,0xdd,0x03,0x05,0x00,0x00]303 304flat_atomic_sub_x2 v[1:2], v[3:4], v[5:6] glc305// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU306// CI: flat_atomic_sub_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x4d,0xdd,0x03,0x05,0x00,0x01]307// VI: flat_atomic_sub_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x8d,0xdd,0x03,0x05,0x00,0x01]308 309flat_atomic_smin_x2 v[3:4], v[5:6]310// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU311// CI: flat_atomic_smin_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x54,0xdd,0x03,0x05,0x00,0x00]312// VI: flat_atomic_smin_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x90,0xdd,0x03,0x05,0x00,0x00]313 314flat_atomic_smin_x2 v[1:2], v[3:4], v[5:6] glc315// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU316// CI: flat_atomic_smin_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x55,0xdd,0x03,0x05,0x00,0x01]317// VI: flat_atomic_smin_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x91,0xdd,0x03,0x05,0x00,0x01]318 319flat_atomic_umin_x2 v[3:4], v[5:6]320// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU321// CI: flat_atomic_umin_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x58,0xdd,0x03,0x05,0x00,0x00]322// VI: flat_atomic_umin_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x94,0xdd,0x03,0x05,0x00,0x00]323 324flat_atomic_umin_x2 v[1:2], v[3:4], v[5:6] glc325// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU326// CI: flat_atomic_umin_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x59,0xdd,0x03,0x05,0x00,0x01]327// VI: flat_atomic_umin_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x95,0xdd,0x03,0x05,0x00,0x01]328 329flat_atomic_smax_x2 v[3:4], v[5:6]330// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU331// CI: flat_atomic_smax_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x5c,0xdd,0x03,0x05,0x00,0x00]332// VI: flat_atomic_smax_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x98,0xdd,0x03,0x05,0x00,0x00]333 334flat_atomic_smax_x2 v[1:2], v[3:4], v[5:6] glc335// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU336// CI: flat_atomic_smax_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x5d,0xdd,0x03,0x05,0x00,0x01]337// VI: flat_atomic_smax_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x99,0xdd,0x03,0x05,0x00,0x01]338 339flat_atomic_umax_x2 v[3:4], v[5:6]340// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU341// CI: flat_atomic_umax_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x60,0xdd,0x03,0x05,0x00,0x00]342// VI: flat_atomic_umax_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x9c,0xdd,0x03,0x05,0x00,0x00]343 344flat_atomic_umax_x2 v[1:2], v[3:4], v[5:6] glc345// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU346// CI: flat_atomic_umax_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x61,0xdd,0x03,0x05,0x00,0x01]347// VI: flat_atomic_umax_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x9d,0xdd,0x03,0x05,0x00,0x01]348 349flat_atomic_and_x2 v[3:4], v[5:6]350// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU351// CI: flat_atomic_and_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x64,0xdd,0x03,0x05,0x00,0x00]352// VI: flat_atomic_and_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0xa0,0xdd,0x03,0x05,0x00,0x00]353 354flat_atomic_and_x2 v[1:2], v[3:4], v[5:6] glc355// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU356// CI: flat_atomic_and_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x65,0xdd,0x03,0x05,0x00,0x01]357// VI: flat_atomic_and_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0xa1,0xdd,0x03,0x05,0x00,0x01]358 359flat_atomic_or_x2 v[3:4], v[5:6]360// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU361// CI: flat_atomic_or_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x68,0xdd,0x03,0x05,0x00,0x00]362// VI: flat_atomic_or_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0xa4,0xdd,0x03,0x05,0x00,0x00]363 364flat_atomic_or_x2 v[1:2], v[3:4], v[5:6] glc365// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU366// CI: flat_atomic_or_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x69,0xdd,0x03,0x05,0x00,0x01]367// VI: flat_atomic_or_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0xa5,0xdd,0x03,0x05,0x00,0x01]368 369flat_atomic_xor_x2 v[3:4], v[5:6]370// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU371// CI: flat_atomic_xor_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x6c,0xdd,0x03,0x05,0x00,0x00]372// VI: flat_atomic_xor_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0xa8,0xdd,0x03,0x05,0x00,0x00]373 374flat_atomic_xor_x2 v[1:2], v[3:4], v[5:6] glc375// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU376// CI: flat_atomic_xor_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x6d,0xdd,0x03,0x05,0x00,0x01]377// VI: flat_atomic_xor_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0xa9,0xdd,0x03,0x05,0x00,0x01]378 379flat_atomic_inc_x2 v[3:4], v[5:6]380// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU381// CI: flat_atomic_inc_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x70,0xdd,0x03,0x05,0x00,0x00]382// VI: flat_atomic_inc_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0xac,0xdd,0x03,0x05,0x00,0x00]383 384flat_atomic_inc_x2 v[1:2], v[3:4], v[5:6] glc385// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU386// CI: flat_atomic_inc_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x71,0xdd,0x03,0x05,0x00,0x01]387// VI: flat_atomic_inc_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0xad,0xdd,0x03,0x05,0x00,0x01]388 389flat_atomic_dec_x2 v[3:4], v[5:6]390// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU391// CI: flat_atomic_dec_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x74,0xdd,0x03,0x05,0x00,0x00]392// VI: flat_atomic_dec_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0xb0,0xdd,0x03,0x05,0x00,0x00]393 394flat_atomic_dec_x2 v[1:2], v[3:4], v[5:6] glc395// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU396// CI: flat_atomic_dec_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x75,0xdd,0x03,0x05,0x00,0x01]397// VI: flat_atomic_dec_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0xb1,0xdd,0x03,0x05,0x00,0x01]398 399flat_atomic_fcmpswap_x2 v[3:4], v[5:8]400// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU401// CI: flat_atomic_fcmpswap_x2 v[3:4], v[5:8] ; encoding: [0x00,0x00,0x78,0xdd,0x03,0x05,0x00,0x00]402// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU403 404flat_atomic_fcmpswap_x2 v[1:2], v[3:4], v[5:8] glc405// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU406// CI: flat_atomic_fcmpswap_x2 v[1:2], v[3:4], v[5:8] glc ; encoding: [0x00,0x00,0x79,0xdd,0x03,0x05,0x00,0x01]407// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU408 409flat_atomic_fmin_x2 v[3:4], v[5:6]410// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU411// CI: flat_atomic_fmin_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x7c,0xdd,0x03,0x05,0x00,0x00]412// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU413 414flat_atomic_fmin_x2 v[1:2], v[3:4], v[5:6] glc415// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU416// CI: flat_atomic_fmin_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x7d,0xdd,0x03,0x05,0x00,0x01]417// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU418 419flat_atomic_fmax_x2 v[3:4], v[5:6]420// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU421// CI: flat_atomic_fmax_x2 v[3:4], v[5:6] ; encoding: [0x00,0x00,0x80,0xdd,0x03,0x05,0x00,0x00]422// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU423 424flat_atomic_fmax_x2 v[1:2], v[3:4], v[5:6] glc425// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU426// CI: flat_atomic_fmax_x2 v[1:2], v[3:4], v[5:6] glc ; encoding: [0x00,0x00,0x81,0xdd,0x03,0x05,0x00,0x01]427// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU428