]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86-64: don't permit LAHF/SAHF with "generic64"
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Feb 2023 12:58:35 +0000 (13:58 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Feb 2023 12:58:35 +0000 (13:58 +0100)
commitc3bb24f5663f3e423f313bc16f27e32ef5e1dc0a
tree0a8f85558ebcb713353cd74ef1d2224313c88d3e
parent5eeeafe0a6884eaf1c5a21160e78e53842fa7cba
x86-64: don't permit LAHF/SAHF with "generic64"

The feature isn't universally available on 64-bit CPUs.

Note that in i386-gen.c:isa_dependencies[] I'm only adding it to models
where I'm certain the functionality exists. For Nocona and Core I'm
uncertain in particular.
17 files changed:
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/ilp32/x86-64-arch-2.d
gas/testsuite/gas/i386/x86-64-arch-2-1.l
gas/testsuite/gas/i386/x86-64-arch-2-2.l
gas/testsuite/gas/i386/x86-64-arch-2-3.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-arch-2-3.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-arch-2-lzcnt.d
gas/testsuite/gas/i386/x86-64-arch-2-prefetchw.d
gas/testsuite/gas/i386/x86-64-arch-2.d
gas/testsuite/gas/i386/x86-64-arch-2.s
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h