Re: [PATCH] xtensa: constantsynth: Add new 3-insns synthesis pattern

2022-09-10 Thread Max Filippov via Gcc-patches
On Sat, Sep 10, 2022 at 2:44 AM Takayuki 'January June' Suwa wrote: > > This patch adds a new 3-instructions constant synthesis pattern: > > - A value that can fit into a signed 12-bit after a number of either bitwise > left or right rotations: > => "MOVI(.N) Ax, simm12" + "SSAI (1 ... 11) o

[PATCH] xtensa: constantsynth: Add new 3-insns synthesis pattern

2022-09-10 Thread Takayuki 'January June' Suwa via Gcc-patches
This patch adds a new 3-instructions constant synthesis pattern: - A value that can fit into a signed 12-bit after a number of either bitwise left or right rotations: => "MOVI(.N) Ax, simm12" + "SSAI (1 ... 11) or (21 ... 31)" + "SRC Ax, Ax, Ax" gcc/ChangeLog: * config/xten