flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [FASMG ivrox] Small Segfault

Author
Thread Post new topic Reply to topic
MaoKo



Joined: 07 May 2019
Posts: 52
Location: Paris/French
MaoKo
Hello. It's seem that the use of an undefined symbol in an dup expression + the use of scaleof trigger a segfault (linux & freebsd).
Code:
fixme: db $01 dup (undefined - $00 scaleof)
    

Hope this help.
Post 30 Apr 2020, 17:28
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7724
Location: Kraków, Poland
Tomasz Grysztar
Thank you! It's fixed now.
Post 30 Apr 2020, 17:52
View user's profile Send private message Visit poster's website Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 724
tthsqe
What about
vpsrlq reg, mem, imm
assembling just fine when the processor says #UD on what FASM generates.
Post 30 Apr 2020, 21:20
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7724
Location: Kraków, Poland
Tomasz Grysztar
You got me a bit confused, as this seems to be completely unrelated to this thread.

Anyway: VPSRLQ reg,mem,imm is a variant only present in AVX-512. You can test this with fasmg, where the instruction does not assemble with AVX2.INC, but assembles with AVX512.INC.
Post 30 Apr 2020, 21:43
View user's profile Send private message Visit poster's website Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 724
tthsqe
Sorry, you are right - 256 bit shift from memory only in avx 512 Sad. I am getting confused by all of the avx variants, and to make matters worse, my computer runs surprisingly few of them. 52 bit -> 104 bit multiplication sounds good, but, guess what? #UD
Post 30 Apr 2020, 22:17
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-2020, Tomasz Grysztar.

Powered by rwasa.