[Nasm-bugs] [Bug 3392421] New: vcvtsd2si ignores {rd-sae}.

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Mon Aug 14 00:28:27 PDT 2017


https://bugzilla.nasm.us/show_bug.cgi?id=3392421

            Bug ID: 3392421
           Summary: vcvtsd2si ignores {rd-sae}.
           Product: NASM
           Version: 2.14 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: herumi at nifty.com
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Binary from nasm.us

Hi all,

nasm seems to ignore {rd-sae} for vcvtsd2si.

For example,

>type test.asm
vcvtsd2si eax, xmm0
vcvtsd2si eax, xmm0, {rn-sae}
vcvtsd2si eax, xmm0, {rd-sae}
vcvtsd2si eax, xmm0, {ru-sae}
vcvtsd2si eax, xmm0, {rz-sae}

>nasm -l a.lst -f win64 test.asm
>type a.lst

     1 00000000 C5FB2DC0                vcvtsd2si eax, xmm0
     2 00000004 C5FB2DC0                vcvtsd2si eax, xmm0, {rn-sae}
     3 00000008 C5FB2DC0                vcvtsd2si eax, xmm0, {rd-sae}
     4 0000000C C5FB2DC0                vcvtsd2si eax, xmm0, {ru-sae}
     5 00000010 C5FB2DC0                vcvtsd2si eax, xmm0, {rz-sae}

I expected these binary such as

C5FB2DC0
62F17F182DC0
62F17F382DC0
62F17F582DC0
62F17F782DC0

It seems same for vcvtsi2ss xmm0, xmm0, {rd-sae}, eax.

 00000014 C5FA2AC0                vcvtsi2ss xmm0, xmm0, eax
 00000018 C5FA2AC0                vcvtsi2ss xmm0, xmm0, {rd-sae}, eax
          ^^^^
I expect 62F17E382AC0.

Is it a bug or correct?

>nasm -v
NASM version 2.14rc0 compiled on May  1 2017

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list