TestSources

usse_test.sail

the sources of a test: 64-bit registers for the vector ALU, src2 one component for all with vscomp; src1 negated where it says

function TestSources(sel : int, type : int) -> unit = {
    let doubled = sel == 0;
    let bits = if doubled then 8 else 7;
    Src12(SRC1, UInt(Field(7, 7)), UInt(Field(30, 2)), Bit(49), doubled, bits);
    Src12(SRC2, UInt(Field(0, 7)), UInt(Field(28, 2)), Bit(48), doubled, bits);
    SetType(SRC1, type);
    SetType(SRC2, type);
    if Bit(46) == 1 & doubled then SetSwizzle(SRC2, SW_X, SW_X, SW_X, SW_X);
    if Bit(50) == 1 then AddFlags(SRC1, F_NEG)
}

Used by


Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from Vita3K's usse_translator_entry.cpp (GPL-2.0-or-later).