]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: optimize {,V}INSERTPS with certain immediates
authorJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2024 09:23:12 +0000 (11:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2024 09:23:12 +0000 (11:23 +0200)
commitca6b6f9d6e65d27bc40c8f1e4c6d39fe04cfbdb2
tree0eaf2affbf899f4c470debc6a457a95335cf0f84
parentf079b0c4b2923393c2ce58e72dfd5a1f2c7a339a
x86: optimize {,V}INSERTPS with certain immediates

They are equivalent to simple moves or xors, which are up to 3 bytes
shorter to encode (and maybe/likely 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-insertps.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-optimize-insertps.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-optimize-insertps.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64.exp
opcodes/i386-opc.tbl
opcodes/i386-tbl.h