]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: optimize {,V}EXTRACTPS with immediate 0
authorJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2024 09:21:51 +0000 (11:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2024 09:21:51 +0000 (11:21 +0200)
commitafd5b33bc7a4a0e58a4981c92727d9f85c421f5d
treed2df388b45ffabefb755d13055a0c49dd1d6e08c
parent0fcb4bfcd40d8d35ac76555a64cf4d6fcc07d0b8
x86: optimize {,V}EXTRACTPS with immediate 0

They are equivalent to simple moves, which are up to 2 bytes shorter to
encode (and maybe also cheaper to execute).
12 files changed:
gas/config/tc-i386.c
gas/testsuite/gas/i386/optimize-1.d
gas/testsuite/gas/i386/optimize-1.s
gas/testsuite/gas/i386/optimize-1a.d
gas/testsuite/gas/i386/optimize-4.d
gas/testsuite/gas/i386/optimize-5.d
gas/testsuite/gas/i386/x86-64-optimize-extractps.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-optimize-extractps.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-optimize-extractps.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64.exp
opcodes/i386-opc.tbl
opcodes/i386-tbl.h