flat assembler
Message board for the users of flat assembler.

Index > Main > [fasmg] VAESENC gives "Error: symbol 'opcode' is undefined

Author
Thread Post new topic Reply to topic
nicolasg



Joined: 23 May 2025
Posts: 2
nicolasg 23 May 2025, 10:23
Hi there,
I'm new here, please forgive me if I'm not posting precisely in the right place.

I was trying to use the vaesenc instruction (and others from the family) with fasm2, but I'm getting an error which is not just "illegal instruction" as if fasm2 didn't know it or I made a typo, what I'm getting is (full output):

Quote:
flat assembler version g.kta0
vaesenc.asm [1]:
vaesenc zmm0, zmm1, zmm2
macro vaesenc? [10] AVX_512.store_instruction@src2 [193] db? [15] (CALM)
Error: symbol 'opcode' is undefined or out of scope.


It seems to me that this is a bug, but am I missing something?... I can use the usual AVX512 instructions for vectorized calculations with no problems, but never tried to use vaesenc. The basic aesenc (non VAES, non AVX512) instruction also assembles fine, but not this one.

I am testing with a one-line assembly file containing just "vaesenc zmm0, zmm1, zmm2"

Thanks in advance for any help!
Post 23 May 2025, 10:23
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8434
Location: Kraków, Poland
Tomasz Grysztar 23 May 2025, 10:42
Yes, it's a bug, thank you! The fix is uploaded.
Post 23 May 2025, 10:42
View user's profile Send private message Visit poster's website Reply with quote
nicolasg



Joined: 23 May 2025
Posts: 2
nicolasg 23 May 2025, 11:00
Wow, that was fast! Thanks!
Post 23 May 2025, 11:00
View user's profile Send private message 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.