Skip to content

parse this case PPC_INST_VPERMWI128 #1

@testdriveupgrade

Description

@testdriveupgrade

parse this case PPC_INST_VPERMWI128:
{
// NOTE: accounting for full vector reversal here
uint32_t x = 3 - (insn.operands[2] & 0x3);
uint32_t y = 3 - ((insn.operands[2] >> 2) & 0x3);
uint32_t z = 3 - ((insn.operands[2] >> 4) & 0x3);
uint32_t w = 3 - ((insn.operands[2] >> 6) & 0x3);
uint32_t perm = x | (y << 2) | (z << 4) | (w << 6);
println("\t_mm_store_si128((m128i*){}.u32, _mm_shuffle_epi32(_mm_load_si128((m128i*){}.u32), 0x{:X}));", v(insn.operands[0]), v(insn.operands[1]), perm);
break;
} - It brokes and don't collect last brace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions