flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [fasm2] Unable to use PEXT

Author
Thread Post new topic Reply to topic
bitRAKE



Joined: 21 Jul 2003
Posts: 3910
Location: vpcmipstrm
bitRAKE 28 Mar 2024, 20:10
Unable to use the PEXT instruction. Trying various configurations of the instruction by itself, it appears evex_b is not defined.

Is it sufficient to:
Code:
calminstruction AVX.store_instruction#context vsize*,vex_mpw*,opcode*,reg*,vreg:0,imm_size:0,immediate
        compute evex_b, 0
        xcall   AVX_512.store_instruction#context, vsize,vex_mpw,(EVEX_FORBIDDEN),opcode,(0),reg,vreg,imm_size,immediate
end calminstruction    

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 28 Mar 2024, 20:10
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8340
Location: Kraków, Poland
Tomasz Grysztar 28 Mar 2024, 21:28
Thank you! I'm applying your fix, it seems you've done all the work for me here.
Post 28 Mar 2024, 21:28
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3910
Location: vpcmipstrm
bitRAKE 28 Mar 2024, 21:36
Perhaps all the instructions should just use AVX_512.parse_operand*, or would that be problematic?
Post 28 Mar 2024, 21:36
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8340
Location: Kraków, Poland
Tomasz Grysztar 28 Mar 2024, 22:18
I think the only issue would be that it would be slightly slower.
Post 28 Mar 2024, 22:18
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.