Changeset 3094 in CLRX


Ignore:
Timestamp:
May 28, 2017, 5:58:30 PM (2 years ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Add parametrization to bound_ctrl.

Location:
CLRadeonExtender/trunk
Files:
3 edited

Legend:

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

    r3093 r3094  
    19701970                            if (linePtr!=end && (*linePtr=='0' || *linePtr=='1'))
    19711971                            {
    1972                                 mods |= VOP3_BOUNDCTRL;
     1972                                bool boundCtrl = false;
    19731973                                linePtr++;
     1974                                good &= parseModEnable(asmr, linePtr, boundCtrl,
     1975                                        "bound_ctrl modifier");
     1976                                mods = (mods & ~VOP3_BOUNDCTRL) |
     1977                                        (boundCtrl ? VOP3_BOUNDCTRL : 0);
    19741978                            }
    19751979                            else
  • CLRadeonExtender/trunk/doc/GcnOperands.md

    r3093 r3094  
    165165The `format` in MTBUF encoding is also parametrizable if data and/or
    166166number format expression will be preceded by `@` character (example: `format[@1,@4]`).
     167Special case is `bound_ctrl`. To parametrize bound_ctrl you must use syntax:
     168`bound_ctrl:0:expr` or `bound_ctrl:1:expr`.
    167169
    168170The HW registers and send message parameters (message and GSOP) is parametrizable if
  • CLRadeonExtender/trunk/tests/amdasm/GCNAsmOpc12.cpp

    r3093 r3094  
    400400    { "   v_cndmask_b32  v154, v190, v107, vcc quad_perm:[0,0,0,0] bound_ctrl : 0 ",
    401401        0x0134d6faU, 0xff0800be, true, true, "" },
     402    { "   v_cndmask_b32  v154, v190, v107, vcc quad_perm:[0,0,0,0] bound_ctrl:0:1",
     403        0x0134d6faU, 0xff0800be, true, true, "" },
     404    { "   v_cndmask_b32  v154, v190, v107, vcc quad_perm:[0,0,0,0] bound_ctrl:0:0",
     405        0x0134d6faU, 0xff0000be, true, true, "" },
     406    { "   v_cndmask_b32  v154, v190, v107, vcc quad_perm:[0,0,0,0] bound_ctrl:1:1",
     407        0x0134d6faU, 0xff0800be, true, true, "" },
     408    { "   v_cndmask_b32  v154, v190, v107, vcc quad_perm:[0,0,0,0] bound_ctrl:1:0",
     409        0x0134d6faU, 0xff0000be, true, true, "" },
    402410    { "   v_cndmask_b32  v154, v190, v107, vcc quad_perm:[0,0,0,0] bank_mask:0 row_mask:0",
    403411        0x0134d6faU, 0xbe, true, true, "" },
Note: See TracChangeset for help on using the changeset viewer.