Changeset 3072 in CLRX


Ignore:
Timestamp:
May 22, 2017, 8:10:20 PM (19 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNDisasm: Add new MUBUF instructions for AMD VEGA arch.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/GCNInstructions.cpp

    r3071 r3072  
    21942194    { "buffer_load_dwordx3", GCNENC_MUBUF,  GCN_MUBUF_MX3|GCN_MLOAD,  15,   ARCH_RX2X0    },
    21952195    { "buffer_store_byte",   GCNENC_MUBUF,  GCN_MUBUF_MX1,            24,   ARCH_GCN_ALL  },
     2196    { "buffer_store_byte_d16_hi", GCNENC_MUBUF,  GCN_MUBUF_MX1,       25,   ARCH_RXVEGA  },
    21962197    { "buffer_store_short",  GCNENC_MUBUF,  GCN_MUBUF_MX1,            26,   ARCH_GCN_ALL  },
     2198    { "buffer_store_short_d16_hi", GCNENC_MUBUF,  GCN_MUBUF_MX1,       27,   ARCH_RXVEGA  },
    21972199    { "buffer_store_dword",  GCNENC_MUBUF,  GCN_MUBUF_MX1,            28,   ARCH_GCN_ALL  },
    21982200    { "buffer_store_dwordx2", GCNENC_MUBUF,  GCN_MUBUF_MX2,           29,   ARCH_GCN_ALL  },
     
    22012203    { "buffer_store_dwordx3", GCNENC_MUBUF,  GCN_MUBUF_MX3,           30,   ARCH_GCN_1_2_4  },
    22022204    { "buffer_store_dwordx4", GCNENC_MUBUF,  GCN_MUBUF_MX4,           31,   ARCH_GCN_1_2_4  },
     2205    { "buffer_load_ubyte_d16", GCNENC_MUBUF,  GCN_MUBUF_MX1|GCN_MLOAD,  32,    ARCH_RXVEGA  },
     2206    { "buffer_load_ubyte_d16_hi", GCNENC_MUBUF,  GCN_MUBUF_MX1|GCN_MLOAD,  33,    ARCH_RXVEGA  },
     2207    { "buffer_load_sbyte_d16", GCNENC_MUBUF,  GCN_MUBUF_MX1|GCN_MLOAD,  34,    ARCH_RXVEGA  },
     2208    { "buffer_load_sbyte_d16_hi", GCNENC_MUBUF,  GCN_MUBUF_MX1|GCN_MLOAD,  35,    ARCH_RXVEGA  },
     2209    { "buffer_load_short_d16", GCNENC_MUBUF,  GCN_MUBUF_MX1|GCN_MLOAD,  36,    ARCH_RXVEGA  },
     2210    { "buffer_load_short_d16_hi", GCNENC_MUBUF,  GCN_MUBUF_MX1|GCN_MLOAD,  37,    ARCH_RXVEGA  },
     2211    { "buffer_load_format_d16_hi_x", GCNENC_MUBUF,  GCN_MUBUF_MX1|GCN_MLOAD,  38,    ARCH_RXVEGA  },
     2212    { "buffer_store_format_d16_hi_x", GCNENC_MUBUF,  GCN_MUBUF_MX1,   39,    ARCH_RXVEGA  },
    22032213    { "buffer_atomic_swap",  GCNENC_MUBUF,  GCN_MUBUF_MX1|GCN_MATOMIC, 48,   ARCH_GCN_1_0_1  },
    22042214    { "buffer_atomic_cmpswap", GCNENC_MUBUF,  GCN_MUBUF_MX2|GCN_MCMPSWAP, 49,   ARCH_GCN_1_0_1  },
  • CLRadeonExtender/trunk/tests/amdasm/GCNDisasmOpc14.cpp

    r3071 r3072  
    448448    { 0xd8b4cd67U, 0x8b000047U, true, "        ds_read_u16_d16 v139, v71 offset:52583\n" },
    449449    { 0xd96ccd67U, 0x8b000000U, true, "        ds_read_addtid_b32 v139 offset:52583\n" },
     450    /* MUBUF instructions */
     451    { 0xe067725bU, 0x23343d12U, true, "        buffer_store_byte_d16_hi "
     452        "v61, v[18:19], s[80:83], s35 offen idxen offset:603 glc slc lds\n" },
     453    { 0xe06f725bU, 0x23343d12U, true, "        buffer_store_short_d16_hi "
     454        "v61, v[18:19], s[80:83], s35 offen idxen offset:603 glc slc lds\n" },
     455    { 0xe083725bU, 0x23343d12U, true, "        buffer_load_ubyte_d16 "
     456        "v61, v[18:19], s[80:83], s35 offen idxen offset:603 glc slc lds\n" },
     457    { 0xe087725bU, 0x23343d12U, true, "        buffer_load_ubyte_d16_hi "
     458        "v61, v[18:19], s[80:83], s35 offen idxen offset:603 glc slc lds\n" },
     459    { 0xe08b725bU, 0x23343d12U, true, "        buffer_load_sbyte_d16 "
     460        "v61, v[18:19], s[80:83], s35 offen idxen offset:603 glc slc lds\n" },
     461    { 0xe08f725bU, 0x23343d12U, true, "        buffer_load_sbyte_d16_hi "
     462        "v61, v[18:19], s[80:83], s35 offen idxen offset:603 glc slc lds\n" },
     463    { 0xe093725bU, 0x23343d12U, true, "        buffer_load_short_d16 "
     464        "v61, v[18:19], s[80:83], s35 offen idxen offset:603 glc slc lds\n" },
     465    { 0xe097725bU, 0x23343d12U, true, "        buffer_load_short_d16_hi "
     466        "v61, v[18:19], s[80:83], s35 offen idxen offset:603 glc slc lds\n" },
     467    { 0xe09b725bU, 0x23343d12U, true, "        buffer_load_format_d16_hi_x "
     468        "v61, v[18:19], s[80:83], s35 offen idxen offset:603 glc slc lds\n" },
     469    { 0xe09f725bU, 0x23343d12U, true, "        buffer_store_format_d16_hi_x "
     470        "v61, v[18:19], s[80:83], s35 offen idxen offset:603 glc slc lds\n" },
    450471    { 0, 0, false, nullptr }
    451472};
Note: See TracChangeset for help on using the changeset viewer.