The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: Biterider on May 02, 2022, 07:04:35 AM

Title: shrx encoding
Post by: Biterider on May 02, 2022, 07:04:35 AM
Hi
By accident I wrote shrx rdx,3 and uasm (V 2.55) compiled it without errors.
When debugging I saw that it was decompiled as shrx rdx,rax,r15.
I suspect something is wrong with this instruction.  :rolleyes:

Biterider
Title: Re: shrx encoding
Post by: Gunther on May 02, 2022, 07:23:09 AM
Biterider,

Quote from: Biterider on May 02, 2022, 07:04:35 AM
When debugging I saw that it was decompiled as shrx rdx,rax,r15.
I suspect something is wrong with this instruction.  :rolleyes:

it seems the same to me. Does it have consequences for your ObjAsm project?
Title: Re: shrx encoding
Post by: Biterider on May 02, 2022, 03:20:34 PM
Hi Gunther
Quote from: Biterider on May 02, 2022, 07:04:35 AM
Does it have consequences for your ObjAsm project?
Not really, I was experimenting with a new algorithm where I wanted to use this instruction to avoid changing flags.

Biterider
Title: Re: shrx encoding
Post by: Gunther on May 03, 2022, 02:54:08 AM
Biterider,

Quote from: Biterider on May 02, 2022, 03:20:34 PM
Not really, I was experimenting with a new algorithm where I wanted to use this instruction to avoid changing flags.

sounds ok. Good luck. :thumbsup:
Title: Re: shrx encoding
Post by: johnsa on May 04, 2022, 08:44:00 PM
Added to 2.56 github issue log. I will investigate :)