]> git.ipfire.org Git - thirdparty/glibc.git/commit
i386: Use TESTB instead of TESTL in ____longjmp_chk()
authorUros Bizjak <ubizjak@gmail.com>
Mon, 18 Aug 2025 09:19:47 +0000 (11:19 +0200)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 20 Aug 2025 18:48:17 +0000 (11:48 -0700)
commitf80dddbe291b23b6851b22f734e2c421a4f9a4bc
tree1408b51edd5195099525248d1f8666a28ef11291
parentdd38f49cdcc3630c541d9f603eb9b5dbeccbbe56
i386: Use TESTB instead of TESTL in ____longjmp_chk()

There is no need to use TESTL when checking the least-significant bit
with a TEST instruction. Use TESTB, which is three bytes shorter:

   f6 44 24 04 01          testb  $0x1,0x4(%esp)

vs:

   f7 44 24 04 01 00 00    testl  $0x1,0x4(%esp)
   00

for the same effect.

No functional changes intended.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Cc: H.J.Lu <hjl.tools@gmail.com>
Cc: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
sysdeps/unix/sysv/linux/i386/____longjmp_chk.S