flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > SSE movsldup error

Author
Thread Post new topic Reply to topic
asmosprog



Joined: 03 Jun 2004
Posts: 2
asmosprog 03 Jun 2004, 04:42
Hello,

Using FASM 1.52 I get an error with the following instruction:

movsldup xmm0,xmm0

It doesn't matter which registers I use but assembles OK if I use:

movsldup xmm0,[esi]

Has anyone else had this problem?

Cheers,
Michael Gallagher
Post 03 Jun 2004, 04:42
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 04 Jun 2004, 13:21
It's a bug - thanks for the report, the fix will be included in the next relase.

If you cannot wait, you can fix it yourself. In X86.INC file find the "sse_xmmreg_xmmreg" label, you should see the following code there:
Code:
      sse_xmmreg_xmmreg:
        cmp     [extended_code],12h
        je      invalid_operand
        cmp     [extended_code],16h
        je      invalid_operand    

Add there the two instructions after the "sse_xmmreg_xmmreg" label:
Code:
      sse_xmmreg_xmmreg:
        cmp     [mmx_prefix],66h
        jne     sse_xmmreg_xmmreg_ok
        cmp     [extended_code],12h
        je      invalid_operand
        cmp     [extended_code],16h
        je      invalid_operand    
Post 04 Jun 2004, 13:21
View user's profile Send private message Visit poster's website Reply with quote
asmosprog



Joined: 03 Jun 2004
Posts: 2
asmosprog 04 Jun 2004, 13:40
Thanks lots for the solution Privalov.

Cheers,
Michael Gallagher
Post 04 Jun 2004, 13:40
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.