brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.5 KiB · 994d82f Raw
87 lines · plain
1// RUN: llvm-mc -triple=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefix=GFX9 %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga 2>&1 %s | FileCheck -check-prefix=VI-ERR --implicit-check-not=error: %s3 4buffer_load_ubyte_d16 v1, off, s[4:7], s15// VI-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU6// GFX9: buffer_load_ubyte_d16 v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x80,0xe0,0x00,0x01,0x01,0x01]7 8buffer_load_ubyte_d16_hi v1, off, s[4:7], s19// GFX9: buffer_load_ubyte_d16_hi v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x84,0xe0,0x00,0x01,0x01,0x01]10// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU11 12buffer_load_ubyte_d16_hi v[1:2], off, s[4:7], s1 tfe13// GFX9: buffer_load_ubyte_d16_hi v[1:2], off, s[4:7], s1 tfe ; encoding: [0x00,0x00,0x84,0xe0,0x00,0x01,0x81,0x01]14// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU15 16buffer_load_sbyte_d16 v1, off, s[4:7], s117// GFX9: buffer_load_sbyte_d16 v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x88,0xe0,0x00,0x01,0x01,0x01]18// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU19 20buffer_load_sbyte_d16_hi v1, off, s[4:7], s121// GFX9: buffer_load_sbyte_d16_hi v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x8c,0xe0,0x00,0x01,0x01,0x01]22// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU23 24buffer_load_short_d16 v1, off, s[4:7], s125// GFX9: buffer_load_short_d16 v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x90,0xe0,0x00,0x01,0x01,0x01]26// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU27 28buffer_load_short_d16_hi v1, off, s[4:7], s129// GFX9: buffer_load_short_d16_hi v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x94,0xe0,0x00,0x01,0x01,0x01]30// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU31 32buffer_store_byte_d16_hi v1, off, s[4:7], s133// GFX9: buffer_store_byte_d16_hi v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x64,0xe0,0x00,0x01,0x01,0x01]34// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU35 36buffer_store_short_d16_hi v1, off, s[4:7], s137// GFX9: buffer_store_short_d16_hi v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x6c,0xe0,0x00,0x01,0x01,0x01]38// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU39 40buffer_load_format_d16_hi_x v5, off, s[8:11], s341// GFX9: buffer_load_format_d16_hi_x v5, off, s[8:11], s3 ; encoding: [0x00,0x00,0x98,0xe0,0x00,0x05,0x02,0x03]42// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU43 44buffer_load_format_d16_hi_x v5, off, s[8:11], s3 offset:409545// GFX9: buffer_load_format_d16_hi_x v5, off, s[8:11], s3 offset:4095 ; encoding: [0xff,0x0f,0x98,0xe0,0x00,0x05,0x02,0x03]46// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU47 48buffer_load_format_d16_hi_x v5, v0, s[8:11], s3 idxen offset:409549// GFX9: buffer_load_format_d16_hi_x v5, v0, s[8:11], s3 idxen offset:4095 ; encoding: [0xff,0x2f,0x98,0xe0,0x00,0x05,0x02,0x03]50// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU51 52buffer_load_format_d16_hi_x v5, v0, s[8:11], s3 offen offset:409553// GFX9: buffer_load_format_d16_hi_x v5, v0, s[8:11], s3 offen offset:4095 ; encoding: [0xff,0x1f,0x98,0xe0,0x00,0x05,0x02,0x03]54// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU55 56buffer_load_format_d16_hi_x v5, off, s[8:11], s3 offset:4095 glc57// GFX9: buffer_load_format_d16_hi_x v5, off, s[8:11], s3 offset:4095 glc ; encoding: [0xff,0x4f,0x98,0xe0,0x00,0x05,0x02,0x03]58// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU59 60buffer_load_format_d16_hi_x v5, off, s[8:11], s3 offset:4095 slc61// GFX9: buffer_load_format_d16_hi_x v5, off, s[8:11], s3 offset:4095 slc ; encoding: [0xff,0x0f,0x9a,0xe0,0x00,0x05,0x02,0x03]62// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU63 64buffer_store_format_d16_hi_x v255, off, s[12:15], s465// GFX9: buffer_store_format_d16_hi_x v255, off, s[12:15], s4 ; encoding: [0x00,0x00,0x9c,0xe0,0x00,0xff,0x03,0x04]66// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU67 68buffer_store_format_d16_hi_x v255, off, s[12:15], s4 offset:409569// GFX9: buffer_store_format_d16_hi_x v255, off, s[12:15], s4 offset:4095 ; encoding: [0xff,0x0f,0x9c,0xe0,0x00,0xff,0x03,0x04]70// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU71 72buffer_store_format_d16_hi_x v1, v0, s[12:15], s4 idxen offset:409573// GFX9: buffer_store_format_d16_hi_x v1, v0, s[12:15], s4 idxen offset:4095 ; encoding: [0xff,0x2f,0x9c,0xe0,0x00,0x01,0x03,0x04]74// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU75 76buffer_store_format_d16_hi_x v1, v0, s[12:15], s4 offen offset:409577// GFX9: buffer_store_format_d16_hi_x v1, v0, s[12:15], s4 offen offset:4095 ; encoding: [0xff,0x1f,0x9c,0xe0,0x00,0x01,0x03,0x04]78// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU79 80buffer_store_format_d16_hi_x v1, off, s[12:15], s4 offset:4095 glc81// GFX9: buffer_store_format_d16_hi_x v1, off, s[12:15], s4 offset:4095 glc ; encoding: [0xff,0x4f,0x9c,0xe0,0x00,0x01,0x03,0x04]82// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU83 84buffer_store_format_d16_hi_x v1, off, s[12:15], s4 offset:4095 slc85// GFX9: buffer_store_format_d16_hi_x v1, off, s[12:15], s4 offset:4095 slc ; encoding: [0xff,0x0f,0x9e,0xe0,0x00,0x01,0x03,0x04]86// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU87