Changeset 3110 in CLRX


Ignore:
Timestamp:
May 31, 2017, 8:21:29 AM (21 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GNAsm: Add testcases for GLOBAL mode to FLAT encoding and its instructions (AMD VEGA arch).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc14.cpp

    r3109 r3110  
    718718    { "scratch_load_short_d16_hi v47, off, s49 glc slc\n",
    719719        0xdc974000U, 0x2f3100ffU, true, true, "" },
     720    /* FLAT GLOBAL scope */
     721    { "global_load_ubyte v47, v[187:188], s[50:51] glc slc\n",
     722        0xdc438000U, 0x2f3200bbU, true, true, "" },
     723    { "global_load_ubyte v47, v[187:188], off glc slc\n",
     724        0xdc438000U, 0x2fff00bbU, true, true, "" },
     725    { "global_load_ubyte v47, v[187:188], s[50:51] inst_offset:1043 glc slc\n",
     726        0xdc438413U, 0x2f3200bbU, true, true, "" },
     727    { "global_load_ubyte v47, v[187:188], s[50:51] inst_offset:zz glc slc\nzz=1044\n",
     728        0xdc438414U, 0x2f3200bbU, true, true, "" },
     729    { "global_load_ubyte v47, v[187:188], s[50:51] inst_offset:-3053 glc slc\n",
     730        0xdc439413U, 0x2f3200bbU, true, true, "" },
     731    { "global_load_ubyte v47, v[187:188], s[50:51] inst_offset:zza glc slc\nzza=-3057\n",
     732        0xdc43940fU, 0x2f3200bbU, true, true, "" },
     733    /* FLAT GLOBAL instructions */
     734    { "global_load_sbyte v47, v[187:188], s[50:51] glc slc\n",
     735        0xdc478000U, 0x2f3200bbU, true, true, "" },
     736    { "global_load_ushort v47, v[187:188], s[50:51] glc slc\n",
     737        0xdc4b8000U, 0x2f3200bbU, true, true, "" },
     738    { "global_load_sshort v47, v[187:188], s[50:51] glc slc\n",
     739        0xdc4f8000U, 0x2f3200bbU, true, true, "" },
     740    { "global_load_dword v47, v[187:188], s[50:51] glc slc\n",
     741        0xdc538000U, 0x2f3200bbU, true, true, "" },
     742    { "global_load_dwordx2 v[47:48], v[187:188], s[50:51] glc slc\n",
     743        0xdc578000U, 0x2f3200bbU, true, true, "" },
     744    { "global_load_dwordx3 v[47:49], v[187:188], s[50:51] glc slc\n",
     745        0xdc5b8000U, 0x2f3200bbU, true, true, "" },
     746    { "global_load_dwordx4 v[47:50], v[187:188], s[50:51] glc slc\n",
     747        0xdc5f8000U, 0x2f3200bbU, true, true, "" },
     748    { "global_store_byte v[187:188], v65, s[50:51] glc slc\n",
     749        0xdc638000U, 0x003241bbU, true, true, "" },
     750    { "global_store_byte_d16_hi v[187:188], v65, s[50:51] glc slc\n",
     751        0xdc678000U, 0x003241bbU, true, true, "" },
     752    { "global_store_short v[187:188], v65, s[50:51] glc slc\n",
     753        0xdc6b8000U, 0x003241bbU, true, true, "" },
     754    { "global_store_short_d16_hi v[187:188], v65, s[50:51] glc slc\n",
     755        0xdc6f8000U, 0x003241bbU, true, true, "" },
     756    { "global_store_dword v[187:188], v65, s[50:51] glc slc\n",
     757        0xdc738000U, 0x003241bbU, true, true, "" },
     758    { "global_store_dwordx2 v[187:188], v[65:66], s[50:51] glc slc\n",
     759        0xdc778000U, 0x003241bbU, true, true, "" },
     760    { "global_store_dwordx3 v[187:188], v[65:67], s[50:51] glc slc\n",
     761        0xdc7b8000U, 0x003241bbU, true, true, "" },
     762    { "global_store_dwordx4 v[187:188], v[65:68], s[50:51] glc slc\n",
     763        0xdc7f8000U, 0x003241bbU, true, true, "" },
     764    { "global_load_ubyte_d16 v47, v[187:188], s[50:51] glc slc\n",
     765        0xdc838000U, 0x2f3200bbU, true, true, "" },
     766    { "global_load_ubyte_d16_hi v47, v[187:188], s[50:51] glc slc\n",
     767        0xdc878000U, 0x2f3200bbU, true, true, "" },
     768    { "global_load_sbyte_d16 v47, v[187:188], s[50:51] glc slc\n",
     769        0xdc8b8000U, 0x2f3200bbU, true, true, "" },
     770    { "global_load_sbyte_d16_hi v47, v[187:188], s[50:51] glc slc\n",
     771        0xdc8f8000U, 0x2f3200bbU, true, true, "" },
     772    { "global_load_short_d16 v47, v[187:188], s[50:51] glc slc\n",
     773        0xdc938000U, 0x2f3200bbU, true, true, "" },
     774    { "global_load_short_d16_hi v47, v[187:188], s[50:51] glc slc\n",
     775        0xdc978000U, 0x2f3200bbU, true, true, "" },
     776    { "global_atomic_swap v47, v[187:188], v65, s[50:51] glc slc\n",
     777        0xdd038000U, 0x2f3241bbU, true, true, "" },
     778    { "global_atomic_cmpswap v47, v[187:188], v[65:66], s[50:51] glc slc\n",
     779        0xdd078000U, 0x2f3241bbU, true, true, "" },
     780    { "global_atomic_add v47, v[187:188], v65, s[50:51] glc slc\n",
     781        0xdd0b8000U, 0x2f3241bbU, true, true, "" },
     782    { "global_atomic_sub v47, v[187:188], v65, s[50:51] glc slc\n",
     783        0xdd0f8000U, 0x2f3241bbU, true, true, "" },
     784    { "global_atomic_smin v47, v[187:188], v65, s[50:51] glc slc\n",
     785        0xdd138000U, 0x2f3241bbU, true, true, "" },
     786    { "global_atomic_umin v47, v[187:188], v65, s[50:51] glc slc\n",
     787        0xdd178000U, 0x2f3241bbU, true, true, "" },
     788    { "global_atomic_smax v47, v[187:188], v65, s[50:51] glc slc\n",
     789        0xdd1b8000U, 0x2f3241bbU, true, true, "" },
     790    { "global_atomic_umax v47, v[187:188], v65, s[50:51] glc slc\n",
     791        0xdd1f8000U, 0x2f3241bbU, true, true, "" },
     792    { "global_atomic_and v47, v[187:188], v65, s[50:51] glc slc\n",
     793        0xdd238000, 0x2f3241bbU, true, true, "" },
     794    { "global_atomic_or v47, v[187:188], v65, s[50:51] glc slc\n",
     795        0xdd278000, 0x2f3241bbU, true, true, "" },
     796    { "global_atomic_xor v47, v[187:188], v65, s[50:51] glc slc\n",
     797        0xdd2b8000, 0x2f3241bbU, true, true, "" },
     798    { "global_atomic_inc v47, v[187:188], v65, s[50:51] glc slc\n",
     799        0xdd2f8000, 0x2f3241bbU, true, true, "" },
     800    { "global_atomic_dec v47, v[187:188], v65, s[50:51] glc slc\n",
     801        0xdd338000, 0x2f3241bbU, true, true, "" },
     802    { "global_atomic_swap_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     803        0xdd838000U, 0x2f3241bbU, true, true, "" },
     804    { "global_atomic_cmpswap_x2 v[47:48], v[187:188], v[65:68], s[50:51] glc slc\n",
     805        0xdd878000U, 0x2f3241bbU, true, true, "" },
     806    { "global_atomic_add_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     807        0xdd8b8000U, 0x2f3241bbU, true, true, "" },
     808    { "global_atomic_sub_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     809        0xdd8f8000U, 0x2f3241bbU, true, true, "" },
     810    { "global_atomic_smin_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     811        0xdd938000U, 0x2f3241bbU, true, true, "" },
     812    { "global_atomic_umin_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     813        0xdd978000U, 0x2f3241bbU, true, true, "" },
     814    { "global_atomic_smax_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     815        0xdd9b8000U, 0x2f3241bbU, true, true, "" },
     816    { "global_atomic_umax_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     817        0xdd9f8000U, 0x2f3241bbU, true, true, "" },
     818    { "global_atomic_and_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     819        0xdda38000, 0x2f3241bbU, true, true, "" },
     820    { "global_atomic_or_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     821        0xdda78000, 0x2f3241bbU, true, true, "" },
     822    { "global_atomic_xor_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     823        0xddab8000, 0x2f3241bbU, true, true, "" },
     824    { "global_atomic_inc_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     825        0xddaf8000, 0x2f3241bbU, true, true, "" },
     826    { "global_atomic_dec_x2 v[47:48], v[187:188], v[65:66], s[50:51] glc slc\n",
     827        0xddb38000, 0x2f3241bbU, true, true, "" },
    720828    { nullptr, 0, 0, false, false, 0 }
    721829};
Note: See TracChangeset for help on using the changeset viewer.