]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86-64: Use long NOPs for Intel Core processors
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 1 Apr 2024 17:03:11 +0000 (10:03 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 11 Apr 2024 03:24:41 +0000 (20:24 -0700)
commitbf649e72d3d5bc0784080438f550095d71769904
tree828e90c9fd35bb83611bd91adb39e760f3af85be
parent533da9536e6e4d65f0623ede93365f7229779f54
x86-64: Use long NOPs for Intel Core processors

Use long NOPs for Intel Core processors since they are faster than
multiple NOPs.  Don't use them for 64-bit processors by default since
Intel Atom processors can only decode 4 prefixes in 1 cycle.

* config/tc-i386.c (alt64_9): New.
(alt64_10): Likewise.
(alt64_11): Likewise.
(alt64_12): Likewise.
(alt64_13): Likewise.
(alt64_14): Likewise.
(alt64_15): Likewise.
(alt64_patt): Likewise.
(i386_generate_nops): Use alt64_patt for Intel Core processors
in 64-bit mode.
* testsuite/gas/i386/x86-64-nops-1-core2.d: Expect long NOPs.
* testsuite/gas/i386/x86-64-nops-4-core2.d: Likewise.
* testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d: Replace
../x86-64-nops-1.d with ../x86-64-nops-1-core2.d.
* testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d: Replace
../x86-64-nops-4.d with ../x86-64-nops-4-core2.d.
gas/config/tc-i386.c
gas/testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d
gas/testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d
gas/testsuite/gas/i386/x86-64-nops-1-core2.d
gas/testsuite/gas/i386/x86-64-nops-4-core2.d