| commit | 0868b8999bbca960781e7d8bbbc363536193a694 | [log] [tgz] |
|---|---|---|
| author | Jan Beulich <jbeulich@suse.com> | Fri Jun 28 08:18:40 2024 +0200 |
| committer | Jan Beulich <jbeulich@suse.com> | Fri Jun 28 08:18:40 2024 +0200 |
| tree | a8ab13e006208fe1ba79ec127b413e67c39a0a35 | |
| parent | f63d85cc78e73e7df93e6eedc953a08b713cfa43 [diff] |
x86/APX: optimize {nf} forms of ADD/SUB with specific immediates
Unlike for the legacy forms, where there's a difference in the resulting
EFLAGS, for the NF variants we can safely replace ones using 0x80 by the
respectively other insn while negating the immediate, saving 3 immediate
bytes (just 1 though for 16-bit operand size). Similarly we can replace
ones using 1 / -1 by INC/DEC (eliminating the immediate).