[PATCH v1] x86: Change padlock instructions prefix as rep
Mayshao-oc
Mayshao-oc@zhaoxin.com
Tue Dec 24 01:57:32 GMT 2024
> On 16.12.2024 08:03, Mayshao-oc wrote:
>
> > Hi all:
>
> > This patch change the display of all padlock instructions prefix
>
> > from repz to rep, because padlock instructions don't effect zf flag.
>
>
>
> "Affect" doesn't matter for REP/REPZ/REPNZ. What may matter is that ZF isn't checked by these insns. However, can you confirm that on the VIA CPUs the same opcodes prefixed with REPNZ wouldn't have the same behavior? I have a sneaking suspicion that while not documented that way, either REP would have been "fine" (just like is the case for e.g.
>
> LODS, MOVS, and STOS). If that was the case, then sticking to REPZ in disassembly may be better.
Thanks for your comment. I will stick to REPZ.
>
>
>
> As to the actual changes, two remarks:
>
>
>
> Why do you fiddle with the comments in gas/testsuite/gas/i386/padlock.s, opcodes/i386-opc.h, and opcodes/i386-opc.tbl? (Even if that was appropriate for some reason, please can you avoid spelling Zhaoxin all uppercase? That's the cosmetic adjustment which I meant to do to the earlier patch that Haochen ended up rushing in. Aiui VIA is an abbreviation while Zhaoxin isn't.)
I wanna use comments to convey the message that Zhaoxin support this instructions, so software guys know where to look for the information about these instructions. I will pay attention to the letter case, thanks.
>
>
>
> In the comment immediately ahead of PADLOCK_Fixup() you want to change from singular to plural, now that the function deals with multiple insns.
>
>
>
> As to the mechanical ChangeLog - you don't really delete MONTMUL_Fixup() and introduce a brand new PADLOCK_Fixup(). Instead you rename the former to the latter.
Thanks for your comments, I fix this in the new patch.
>
>
>
> Jan
BR
Mayshao
More information about the Binutils
mailing list