Re: [x86 PATCH] Use ix86_expand_clear in ix86_split_ashl.

2022-12-28 Thread Uros Bizjak via Gcc-patches
On Wed, Dec 28, 2022 at 1:06 AM Roger Sayle wrote: > > This patch is a one line change, to call ix86_expand_clear instead of > emit_move_insn with const0_rtx in ix86_split_ashl, allowing the backend > to use an xor instruction to clear a register if appropriate. > > The effect is demonstrated with

[x86 PATCH] Use ix86_expand_clear in ix86_split_ashl.

2022-12-27 Thread Roger Sayle
This patch is a one line change, to call ix86_expand_clear instead of emit_move_insn with const0_rtx in ix86_split_ashl, allowing the backend to use an xor instruction to clear a register if appropriate. The effect is demonstrated with the following function. __int128 foo(__int128 x, unsigned long