brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.3 KiB · 80aedce Raw
120 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 -show-encoding %s | FileCheck --check-prefix=GFX10 %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck --check-prefix=GFX10-ERR --implicit-check-not=error: %s3 4flat_load_dword v1, v[3:4]5// GFX10: encoding: [0x00,0x00,0x30,0xdc,0x03,0x00,0x7d,0x01]6 7flat_load_dword v1, v[3:4] offset:-18// GFX10-ERR: :[[@LINE-1]]:28: error: expected a 11-bit unsigned offset9 10flat_load_dword v1, v[3:4] offset:204711// GFX10: encoding: [0xff,0x07,0x30,0xdc,0x03,0x00,0x7d,0x01]12 13flat_load_dword v1, v[3:4] offset:204814// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 11-bit unsigned offset15 16flat_load_dword v1, v[3:4] offset:4 glc17// GFX10: encoding: [0x04,0x00,0x31,0xdc,0x03,0x00,0x7d,0x01]18 19flat_load_dword v1, v[3:4] offset:4 glc slc20// GFX10: encoding: [0x04,0x00,0x33,0xdc,0x03,0x00,0x7d,0x01]21 22flat_load_dword v1, v[3:4] offset:4 glc slc dlc23// GFX10: encoding: [0x04,0x10,0x33,0xdc,0x03,0x00,0x7d,0x01]24 25flat_atomic_add v[3:4], v5 offset:8 slc26// GFX10: encoding: [0x08,0x00,0xca,0xdc,0x03,0x05,0x7d,0x00]27 28flat_atomic_cmpswap v[1:2], v[3:4] offset:204729// GFX10: encoding: [0xff,0x07,0xc4,0xdc,0x01,0x03,0x7d,0x00]30 31flat_atomic_cmpswap v[1:2], v[3:4] offset:2047 slc32// GFX10: encoding: [0xff,0x07,0xc6,0xdc,0x01,0x03,0x7d,0x00]33 34flat_atomic_cmpswap v[1:2], v[3:4]35// GFX10: encoding: [0x00,0x00,0xc4,0xdc,0x01,0x03,0x7d,0x00]36 37flat_atomic_cmpswap v[1:2], v[3:4] slc38// GFX10: encoding: [0x00,0x00,0xc6,0xdc,0x01,0x03,0x7d,0x00]39 40flat_atomic_cmpswap v[1:2], v[3:4] offset:2047 glc41// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must not use glc42 43flat_atomic_cmpswap v[1:2], v[3:4] glc44// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must not use glc45 46flat_atomic_cmpswap v0, v[1:2], v[3:4] offset:2047 glc47// GFX10: encoding: [0xff,0x07,0xc5,0xdc,0x01,0x03,0x7d,0x00]48 49flat_atomic_cmpswap v0, v[1:2], v[3:4] offset:2047 glc slc50// GFX10: encoding: [0xff,0x07,0xc7,0xdc,0x01,0x03,0x7d,0x00]51 52flat_atomic_cmpswap v0, v[1:2], v[3:4] glc53// GFX10: encoding: [0x00,0x00,0xc5,0xdc,0x01,0x03,0x7d,0x00]54 55flat_atomic_cmpswap v0, v[1:2], v[3:4] glc slc56// GFX10: encoding: [0x00,0x00,0xc7,0xdc,0x01,0x03,0x7d,0x00]57 58flat_atomic_cmpswap v0, v[1:2], v[3:4] glc59// GFX10: encoding: [0x00,0x00,0xc5,0xdc,0x01,0x03,0x7d,0x00]60 61flat_atomic_cmpswap v0, v[1:2], v[3:4] offset:204762// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc63 64flat_atomic_cmpswap v0, v[1:2], v[3:4] slc65// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must use glc66 67flat_atomic_swap v[3:4], v5 offset:1668// GFX10: encoding: [0x10,0x00,0xc0,0xdc,0x03,0x05,0x7d,0x00]69 70flat_store_dword v[3:4], v1 offset:1671// GFX10: encoding: [0x10,0x00,0x70,0xdc,0x03,0x01,0x7d,0x00]72 73flat_store_dword v[3:4], v1, off74// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction75 76flat_store_dword v[3:4], v1, s[0:1]77// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction78 79flat_store_dword v[3:4], v1, s080// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction81 82flat_load_dword v1, v[3:4], off83// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction84 85flat_load_dword v1, v[3:4], s[0:1]86// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction87 88flat_load_dword v1, v[3:4], s089// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction90 91flat_load_dword v1, v[3:4], exec_hi92// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction93 94flat_store_dword v[3:4], v1, exec_hi95// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction96 97flat_load_ubyte_d16 v1, v[3:4]98// GFX10: encoding: [0x00,0x00,0x80,0xdc,0x03,0x00,0x7d,0x01]99 100flat_load_ubyte_d16_hi v1, v[3:4]101// GFX10: encoding: [0x00,0x00,0x84,0xdc,0x03,0x00,0x7d,0x01]102 103flat_load_sbyte_d16 v1, v[3:4]104// GFX10: encoding: [0x00,0x00,0x88,0xdc,0x03,0x00,0x7d,0x01]105 106flat_load_sbyte_d16_hi v1, v[3:4]107// GFX10: encoding: [0x00,0x00,0x8c,0xdc,0x03,0x00,0x7d,0x01]108 109flat_load_short_d16 v1, v[3:4]110// GFX10: encoding: [0x00,0x00,0x90,0xdc,0x03,0x00,0x7d,0x01]111 112flat_load_short_d16_hi v1, v[3:4]113// GFX10: encoding: [0x00,0x00,0x94,0xdc,0x03,0x00,0x7d,0x01]114 115flat_store_byte_d16_hi v[3:4], v1116// GFX10: encoding: [0x00,0x00,0x64,0xdc,0x03,0x01,0x7d,0x00]117 118flat_store_short_d16_hi v[3:4], v1119// GFX10: encoding: [0x00,0x00,0x6c,0xdc,0x03,0x01,0x7d,0x00]120