Changeset 4802 in CLRX


Ignore:
Timestamp:
Jul 17, 2019, 9:08:36 PM (5 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Add SMEM encoding testcases for GFX10. Fixed resolving SOFFSET in SMEM for GFX10 (include NULL for SGPR offset).

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

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

    r4801 r4802  
    422422            }
    423423            else
    424                 SULEV(*reinterpret_cast<uint32_t*>(sectionData+offset+4), value&0xfffffU);
     424                SULEV(*reinterpret_cast<uint32_t*>(sectionData+offset+4),
     425                      (value&0xfffffU) | ((curArchMask & ARCH_GCN_1_5) ? 0x7dU<<25 : 0));
    425426            printWarningForRange(targetType==GCNTGT_SMEMOFFSETVEGA ? 21 : 20,
    426427                            value, sourcePos,
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc15.cpp

    r4801 r4802  
    547547    { "        s_load_dword    s3, s[0:1], s4 glc dlc\n",
    548548                0xf40140c0U, 0x08000000U, true, true, "" },
     549    { "        s_load_dword    s3, s[0:1], s4 glc:1 dlc:1\n",
     550                0xf40140c0U, 0x08000000U, true, true, "" },
    549551    { "        s_load_dword    s3, s[0:1], s4 dlc\n",
    550552                0xf40040c0U, 0x08000000U, true, true, "" },
    551553    { "        s_load_dword    s3, s[0:1], s4 nv\n",
    552554                0xf40080c0U, 0x08000000U, true, true, "" },
     555    { "        s_load_dword    s3, s[0:1], s4 dlc:0 nv\n",
     556                0xf40080c0U, 0x08000000U, true, true, "" },
     557    { "        s_load_dword    s3, s[6:7], s4 nv glc:0\n",
     558                0xf40080c3U, 0x08000000U, true, true, "" },
     559    { "ft=42; by=21; s_load_dword    s3, s[18:19], ft*by\n",
     560                0xf40000c9U, 0xfa000372U, true, true, "" },
     561    { "s_load_dword    s3, s[18:19], ft*by; ft=42; by=21\n",
     562                0xf40000c9U, 0xfa000372U, true, true, "" },
    553563    { nullptr, 0, 0, false, false, 0 }
    554564};
Note: See TracChangeset for help on using the changeset viewer.