brintos

brintos / llvm-project-archived public Read only

0
0
Text · 7.0 KiB · a1d64ef Raw
126 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga 2>&1 %s | FileCheck -check-prefix=VI-ERR --implicit-check-not=error: %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 2>&1 %s | FileCheck -check-prefix=GFX9_10-ERR --implicit-check-not=error: %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 2>&1 %s | FileCheck --check-prefixes=GFX9_10-ERR --implicit-check-not=error: %s4// RUN: llvm-mc -triple=amdgcn -mcpu=gfx1030 -show-encoding %s | FileCheck --check-prefixes=GFX1030 %s5 6scratch_load_ubyte v1, off, off7// GFX1030: encoding: [0x00,0x40,0x20,0xdc,0x00,0x00,0x7f,0x01]8// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode9// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU10 11scratch_load_sbyte v1, off, off12// GFX1030: encoding: [0x00,0x40,0x24,0xdc,0x00,0x00,0x7f,0x01]13// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode14// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU15 16scratch_load_ushort v1, off, off17// GFX1030: encoding: [0x00,0x40,0x28,0xdc,0x00,0x00,0x7f,0x01]18// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode19// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU20 21scratch_load_sshort v1, off, off22// GFX1030: encoding: [0x00,0x40,0x2c,0xdc,0x00,0x00,0x7f,0x01]23// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode24// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU25 26scratch_load_dword v1, off, off27// GFX1030: encoding: [0x00,0x40,0x30,0xdc,0x00,0x00,0x7f,0x01]28// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode29// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU30 31scratch_load_dwordx2 v[1:2], off, off32// GFX1030: encoding: [0x00,0x40,0x34,0xdc,0x00,0x00,0x7f,0x01]33// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode34// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU35 36scratch_load_dwordx3 v[1:3], off, off37// GFX1030: encoding: [0x00,0x40,0x3c,0xdc,0x00,0x00,0x7f,0x01]38// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode39// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU40 41scratch_load_dwordx4 v[1:4], off, off42// GFX1030: encoding: [0x00,0x40,0x38,0xdc,0x00,0x00,0x7f,0x01]43// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode44// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU45 46scratch_load_dword v1, off, off offset:204747// GFX1030: scratch_load_dword v1, off, off offset:2047 ; encoding: [0xff,0x47,0x30,0xdc,0x00,0x00,0x7f,0x01]48// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode49// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU50 51scratch_store_byte off, v2, off52// GFX1030: encoding: [0x00,0x40,0x60,0xdc,0x00,0x02,0x7f,0x00]53// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode54// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU55 56scratch_store_short off, v2, off57// GFX1030: encoding: [0x00,0x40,0x68,0xdc,0x00,0x02,0x7f,0x00]58// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode59// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU60 61scratch_store_dword off, v2, off62// GFX1030: encoding: [0x00,0x40,0x70,0xdc,0x00,0x02,0x7f,0x00]63// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode64// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU65 66scratch_store_dwordx2 off, v[2:3], off67// GFX1030: encoding: [0x00,0x40,0x74,0xdc,0x00,0x02,0x7f,0x00]68// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode69// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU70 71scratch_store_dwordx3 off, v[2:4], off72// GFX1030: encoding: [0x00,0x40,0x7c,0xdc,0x00,0x02,0x7f,0x00]73// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode74// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU75 76scratch_store_dwordx4 off, v[2:5], off77// GFX1030: encoding: [0x00,0x40,0x78,0xdc,0x00,0x02,0x7f,0x00]78// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode79// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU80 81scratch_store_dword off, v2, off offset:204782// GFX1030: scratch_store_dword off, v2, off offset:2047 ; encoding: [0xff,0x47,0x70,0xdc,0x00,0x02,0x7f,0x00]83// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode84// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU85 86scratch_load_ubyte_d16 v1, off, off87// GFX1030: encoding: [0x00,0x40,0x80,0xdc,0x00,0x00,0x7f,0x01]88// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode89// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU90 91scratch_load_ubyte_d16_hi v1, off, off92// GFX1030: encoding: [0x00,0x40,0x84,0xdc,0x00,0x00,0x7f,0x01]93// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode94// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU95 96scratch_load_sbyte_d16 v1, off, off97// GFX1030: encoding: [0x00,0x40,0x88,0xdc,0x00,0x00,0x7f,0x01]98// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode99// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU100 101scratch_load_sbyte_d16_hi v1, off, off102// GFX1030: encoding: [0x00,0x40,0x8c,0xdc,0x00,0x00,0x7f,0x01]103// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode104// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU105 106scratch_load_short_d16 v1, off, off107// GFX1030: encoding: [0x00,0x40,0x90,0xdc,0x00,0x00,0x7f,0x01]108// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode109// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU110 111scratch_load_short_d16_hi v1, off, off112// GFX1030: encoding: [0x00,0x40,0x94,0xdc,0x00,0x00,0x7f,0x01]113// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode114// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU115 116scratch_store_byte_d16_hi off, v2, off117// GFX1030: encoding: [0x00,0x40,0x64,0xdc,0x00,0x02,0x7f,0x00]118// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode119// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU120 121 122scratch_store_short_d16_hi off, v2, off123// GFX1030: encoding: [0x00,0x40,0x6c,0xdc,0x00,0x02,0x7f,0x00]124// GFX9_10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode125// VI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU126