flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [fasm2] AVX2 encoding of vmovdqa/vmovdqu missing

Author
Thread Post new topic Reply to topic
bitRAKE



Joined: 21 Jul 2003
Posts: 4043
Location: vpcmpistri
bitRAKE 03 Sep 2024, 10:55
Code:
iterate <instr,         vex_mpw,        evex_f,                 opcode_rm,opcode_mr>,\
        vmovdqa,        VEX_66_0F_W0,   EVEX_W1+EVEX_VL,        6Fh,7Fh,\
        vmovdqu,        VEX_F3_0F_W0,   EVEX_W1+EVEX_VL,        6Fh,7Fh

        macro instr? dest*,src*
                AVX_512.parse_k1z_operand@dest dest
                AVX_512.parse_operand@src src
                if @dest.type = 'mmreg' & (@src.type = 'mmreg' | @src.type = 'mem')
                        if @src.size and not @dest.size
                                err 'operand sizes do not match'
                        end if
                        AVX_512.store_instruction@src @dest.size,vex_mpw,evex_f,opcode_rm,@dest.mask,@dest.rm
                else if @dest.type = 'mem' & @src.type = 'mmreg'
                        if @dest.size and not @src.size
                                err 'operand sizes do not match'
                        end if
                        AVX_512.store_instruction@dest @src.size,vex_mpw,evex_f,opcode_mr,@dest.mask,@src.rm
                else
                        err 'invalid combination of operands'
                end if
        end macro

end iterate    
*32/*64 avx512 variants are present, but not AVX2.

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 03 Sep 2024, 10:55
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.