]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
tidy x86 HANDLE_ALIGN
authorAlan Modra <amodra@gmail.com>
Sun, 18 May 2025 14:57:54 +0000 (00:27 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 22 May 2025 22:56:08 +0000 (08:26 +0930)
commit83d94ae428b1a41ebee64a78b868cf1668cefcf7
treea162a95863ed19f69d8bb035e4c58e611a9ebaa0
parent7ca6020a4e527e37454fa4ee1d4412ee68c38207
tidy x86 HANDLE_ALIGN

Reduce memory requirement for .align in code.

I've changed some of the tests to use "clc" rather than "nop", so that
code emitted by .p2align can be clearly seen.

* config/tc-i386.c (i386_output_nops): Merge into..
(i386_generate_nops): ..here.  Put shorter nop first.  For
rs_align_code make use of the fact that the last fr_var bytes
are output repeatedly rather than repeating them here.
* config/tc-i386.h (HANDLE_ALIGN): Don't test max_bytes.
(MAX_MEM_FOR_RS_ALIGN_CODE): Update.
* testsuite/gas/i386/nops-1.s,
* testsuite/gas/i386/nops-2.s,
* testsuite/gas/i386/nops-3.s,
* testsuite/gas/i386/nops-4.s,
* testsuite/gas/i386/nops16-1.s: Replace "nop" with "clc".
* testsuite/gas/i386/align-branch-6.d,
* testsuite/gas/i386/nop-1-suffix.d,
* testsuite/gas/i386/nop-1.d,
* testsuite/gas/i386/nop-1.l,
* testsuite/gas/i386/nop-2.d,
* testsuite/gas/i386/nop-4.d,
* testsuite/gas/i386/nop-5.d,
* testsuite/gas/i386/nops-1-core2.d,
* testsuite/gas/i386/nops-1.d,
* testsuite/gas/i386/nops-10.d,
* testsuite/gas/i386/nops-2.d,
* testsuite/gas/i386/nops-3.d,
* testsuite/gas/i386/nops-4.d,
* testsuite/gas/i386/nops-4a-i686.d,
* testsuite/gas/i386/nops-5.d,
* testsuite/gas/i386/nops-6.d,
* testsuite/gas/i386/nops-7.d,
* testsuite/gas/i386/nops-9.d,
* testsuite/gas/i386/nops16-1.d,
* testsuite/gas/i386/x86-64-align-branch-6.d,
* testsuite/gas/i386/x86-64-nop-1.d,
* testsuite/gas/i386/x86-64-nop-5.d,
* testsuite/gas/i386/x86-64-nops-1-core2.d,
* testsuite/gas/i386/x86-64-nops-1-pentium.d,
* testsuite/gas/i386/x86-64-nops-1.d,
* testsuite/gas/i386/x86-64-nops-2.d,
* testsuite/gas/i386/x86-64-nops-3.d,
* testsuite/gas/i386/x86-64-nops-4-core2.d,
* testsuite/gas/i386/x86-64-nops-4.d,
* testsuite/gas/i386/x86-64-nops-5.d,
* testsuite/gas/i386/x86-64-nops-6.d,
* testsuite/gas/i386/x86-64-nops-7.d: Adjust to suit.
39 files changed:
gas/config/tc-i386.c
gas/config/tc-i386.h
gas/testsuite/gas/i386/align-branch-6.d
gas/testsuite/gas/i386/nop-1-suffix.d
gas/testsuite/gas/i386/nop-1.d
gas/testsuite/gas/i386/nop-1.l
gas/testsuite/gas/i386/nop-2.d
gas/testsuite/gas/i386/nop-4.d
gas/testsuite/gas/i386/nop-5.d
gas/testsuite/gas/i386/nops-1-core2.d
gas/testsuite/gas/i386/nops-1.d
gas/testsuite/gas/i386/nops-1.s
gas/testsuite/gas/i386/nops-10.d
gas/testsuite/gas/i386/nops-2.d
gas/testsuite/gas/i386/nops-2.s
gas/testsuite/gas/i386/nops-3.d
gas/testsuite/gas/i386/nops-3.s
gas/testsuite/gas/i386/nops-4.d
gas/testsuite/gas/i386/nops-4.s
gas/testsuite/gas/i386/nops-4a-i686.d
gas/testsuite/gas/i386/nops-5.d
gas/testsuite/gas/i386/nops-6.d
gas/testsuite/gas/i386/nops-7.d
gas/testsuite/gas/i386/nops-9.d
gas/testsuite/gas/i386/nops16-1.d
gas/testsuite/gas/i386/nops16-1.s
gas/testsuite/gas/i386/x86-64-align-branch-6.d
gas/testsuite/gas/i386/x86-64-nop-1.d
gas/testsuite/gas/i386/x86-64-nop-5.d
gas/testsuite/gas/i386/x86-64-nops-1-core2.d
gas/testsuite/gas/i386/x86-64-nops-1-pentium.d
gas/testsuite/gas/i386/x86-64-nops-1.d
gas/testsuite/gas/i386/x86-64-nops-2.d
gas/testsuite/gas/i386/x86-64-nops-3.d
gas/testsuite/gas/i386/x86-64-nops-4-core2.d
gas/testsuite/gas/i386/x86-64-nops-4.d
gas/testsuite/gas/i386/x86-64-nops-5.d
gas/testsuite/gas/i386/x86-64-nops-6.d
gas/testsuite/gas/i386/x86-64-nops-7.d