flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > movq bug: movq xmm,mm is allowed!

Author
Thread Post new topic Reply to topic
Nicodemus



Joined: 11 Feb 2008
Posts: 6
Nicodemus
Hi there!

fasm 1.67.26 compiles code like:

Code:
movq xmm1, mm0    


but this is no legal instruction!
MOVQ must not move between XMM and MMX registers.

What is worse is that fasm actually generates the following opcode from the statement above, which makes debugging extremely difficult:

Code:
movq xmm1, xmm0    


Please fix this issue!

Thanks in advance!
Nicodemus
Post 11 Feb 2008, 22:33
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17715
Location: In your JS exploiting you and your system
revolution
I think the assembler thinks you just missed out a letter 'x' and decided to be nice about it and "correct" it for you rather than punish you with an error message. Wink

But seriously, good find.
Post 12 Feb 2008, 02:11
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7802
Location: Kraków, Poland
Tomasz Grysztar
Will be fixed in 1.67.27
Post 12 Feb 2008, 06:48
View user's profile Send private message Visit poster's website Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
The error message will look like: "Hey, U missed an 'x' there m8 Wink"
Post 13 Feb 2008, 10:15
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger 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. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.