Home | History | Annotate | Download | only in AMDGPU
      1 // RUN: llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefix=GFX9 -check-prefix=GCN %s
      2 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding 2>&1 %s | FileCheck -check-prefix=VI-ERR -check-prefix=GCNERR %s
      3 
      4 buffer_load_ubyte_d16 v1, off, s[4:7], s1
      5 // VI-ERR: error: instruction not supported on this GPU
      6 // GFX9: buffer_load_ubyte_d16 v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x80,0xe0,0x00,0x01,0x01,0x01]
      7 
      8 buffer_load_ubyte_d16_hi v1, off, s[4:7], s1
      9 // GFX9: buffer_load_ubyte_d16_hi v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x84,0xe0,0x00,0x01,0x01,0x01]
     10 // VI-ERR: error: instruction not supported on this GPU
     11 
     12 buffer_load_sbyte_d16 v1, off, s[4:7], s1
     13 // GFX9: buffer_load_sbyte_d16 v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x88,0xe0,0x00,0x01,0x01,0x01]
     14 // VI-ERR: error: instruction not supported on this GPU
     15 
     16 buffer_load_sbyte_d16_hi v1, off, s[4:7], s1
     17 // GFX9: buffer_load_sbyte_d16_hi v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x8c,0xe0,0x00,0x01,0x01,0x01]
     18 // VI-ERR: error: instruction not supported on this GPU
     19 
     20 buffer_load_short_d16 v1, off, s[4:7], s1
     21 // GFX9: buffer_load_short_d16 v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x90,0xe0,0x00,0x01,0x01,0x01]
     22 // VI-ERR: error: instruction not supported on this GPU
     23 
     24 buffer_load_short_d16_hi v1, off, s[4:7], s1
     25 // GFX9: buffer_load_short_d16_hi v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x94,0xe0,0x00,0x01,0x01,0x01]
     26 // VI-ERR: error: instruction not supported on this GPU
     27 
     28 buffer_store_byte_d16_hi v1, off, s[4:7], s1
     29 // GFX9: buffer_store_byte_d16_hi v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x64,0xe0,0x00,0x01,0x01,0x01]
     30 // VI-ERR: error: instruction not supported on this GPU
     31 
     32 buffer_store_short_d16_hi v1, off, s[4:7], s1
     33 // GFX9: buffer_store_short_d16_hi v1, off, s[4:7], s1 ; encoding: [0x00,0x00,0x6c,0xe0,0x00,0x01,0x01,0x01]
     34 // VI-ERR: error: instruction not supported on this GPU
     35 
     36 buffer_load_format_d16_hi_x v5, off, s[8:11], s3
     37 // GFX9: buffer_load_format_d16_hi_x v5, off, s[8:11], s3 ; encoding: [0x00,0x00,0x98,0xe0,0x00,0x05,0x02,0x03]
     38 // VI-ERR: error: instruction not supported on this GPU
     39 
     40 buffer_load_format_d16_hi_x v5, off, s[8:11], s3 offset:4095
     41 // GFX9: buffer_load_format_d16_hi_x v5, off, s[8:11], s3 offset:4095 ; encoding: [0xff,0x0f,0x98,0xe0,0x00,0x05,0x02,0x03]
     42 // VI-ERR: error
     43 
     44 buffer_load_format_d16_hi_x v5, v0, s[8:11], s3 idxen offset:4095
     45 // 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]
     46 // VI-ERR: error
     47 
     48 buffer_load_format_d16_hi_x v5, v0, s[8:11], s3 offen offset:4095
     49 // 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]
     50 // VI-ERR: error
     51 
     52 buffer_load_format_d16_hi_x v5, off, s[8:11], s3 offset:4095 glc
     53 // 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]
     54 // VI-ERR: error
     55 
     56 buffer_load_format_d16_hi_x v5, off, s[8:11], s3 offset:4095 slc
     57 // 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]
     58 // VI-ERR: error
     59 
     60 buffer_store_format_d16_hi_x v255, off, s[12:15], s4
     61 // GFX9: buffer_store_format_d16_hi_x v255, off, s[12:15], s4 ; encoding: [0x00,0x00,0x9c,0xe0,0x00,0xff,0x03,0x04]
     62 // VI-ERR: error: instruction not supported on this GPU
     63 
     64 buffer_store_format_d16_hi_x v255, off, s[12:15], s4 offset:4095
     65 // GFX9: buffer_store_format_d16_hi_x v255, off, s[12:15], s4 offset:4095 ; encoding: [0xff,0x0f,0x9c,0xe0,0x00,0xff,0x03,0x04]
     66 // VI-ERR: error
     67 
     68 buffer_store_format_d16_hi_x v1, v0, s[12:15], s4 idxen offset:4095
     69 // 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]
     70 // VI-ERR: error
     71 
     72 buffer_store_format_d16_hi_x v1, v0, s[12:15], s4 offen offset:4095
     73 // 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]
     74 // VI-ERR: error
     75 
     76 buffer_store_format_d16_hi_x v1, off, s[12:15], s4 offset:4095 glc
     77 // 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]
     78 // VI-ERR: error
     79 
     80 buffer_store_format_d16_hi_x v1, off, s[12:15], s4 offset:4095 slc
     81 // 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]
     82 // VI-ERR: error
     83