[ nasm-Bugs-2887108 ] imul reg,reg,imm32 defective

View: New views
1 Messages — Rating Filter:   Alert me  

[ nasm-Bugs-2887108 ] imul reg,reg,imm32 defective

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2887108, was opened at 2009-10-27 15:02
Message generated for change (Comment added) made by cyrillos
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106208&aid=2887108&group_id=6208

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Assembler
Group: None
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: Jasper Neumann (jasper_neumann)
Assigned to: Nobody/Anonymous (nobody)
Summary: imul reg,reg,imm32 defective

Initial Comment:
Commands like
  imul eax,eax,0x12340001
produce wrong code (imul reg,reg,imm8). It seems that the upper 16 bits are not analyzed for op code selection.

Sample, all imul produce wrong code; b.asm:
===
bits 32
global test
test:
  imul  eax,eax,65537
  imul  eax,eax,0x00010001
  imul  eax,eax,0x1234007f
  imul  eax,eax,0xfedcff80
  ret
===

Command line: nasm -Ox -t -f rdf -o b.rdf b.asm

BTW: The variant "imul reg,mem,const" is OK.

This applies to at least the versions 2.08rc1 and 2.07.

----------------------------------------------------------------------

Comment By: Cyrill Gorcunov (cyrillos)
Date: 2009-10-30 19:47

Message:
Hmm, this is due to -Ox, investigating.... Thanks!

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106208&aid=2887108&group_id=6208

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Nasm-bugs mailing list
Nasm-bugs@...
https://lists.sourceforge.net/lists/listinfo/nasm-bugs