Terraspace / UASM

UASM - Macro Assembler
http://www.terraspace.co.uk/uasm.html
Other
221 stars 49 forks source link

Bad bytecode produces with vpextrw instruction #213

Open cleeeem opened 2 months ago

cleeeem commented 2 months ago

Hello,

When using UASM 2.57, I can compile for example this :

vpextrw edx , xmm1 , 0x7

I get this bytecode

c4 e1 f8 c5 d1 07 vpextrw edx , xmm1 , 0x7

which is wrong and means :

c4 e1 f8 c5 (bad) d1 07 rol DWORD PTR [rdi],1

The good bytecode should be :

c5 f9 c5 d1 07 vpextrw edx,xmm1,0x7

Can someone confirm the issue ?

Best regards, Clement

john-terraspace commented 2 months ago

I will investigate this – thanks for reporting!

From: cleeeem @.> Sent: 06 September 2024 10:09 To: Terraspace/UASM @.> Cc: Subscribed @.***> Subject: [Terraspace/UASM] Bad bytecode produce with vpextrw instruction (Issue #213)

Hello,

When using UASM 2.57, I can compile for example this :

vpextrw edx , xmm1 , 0x7

I get this bytecode

c4 e1 f8 c5 d1 07 vpextrw edx , xmm1 , 0x7

which is wrong and means :

c4 e1 f8 c5 (bad) d1 07 rol DWORD PTR [rdi],1

The good bytecode should be :

c5 f9 c5 d1 07 vpextrw edx,xmm1,0x7

Can someone confirm the issue ?

Best regards, Clement

— Reply to this email directly, view it on GitHub https://github.com/Terraspace/UASM/issues/213 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAZAVCDBFE5FUQZQHVYT53ZVFWMBAVCNFSM6AAAAABNYFITA2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYDSOJTGA2DENI . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/AEAZAVHWGM755FGSVUD3TXLZVFWMBA5CNFSM6AAAAABNYFITA2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJLGT7XE.gif Message ID: @. @.> >