Re: [PATCH 1/2] xtensa: constantsynth: Make try to find shorter instruction
On Fri, Jul 15, 2022 at 4:17 PM Takayuki 'January June' Suwa wrote: > > This patch allows the constant synthesis to choose shorter instruction > if possible. > > /* example */ > int test(void) { > return 128 << 8; > } > > ;; before > test: > movia2, 0x100 >
[PATCH 1/2] xtensa: constantsynth: Make try to find shorter instruction
This patch allows the constant synthesis to choose shorter instruction if possible. /* example */ int test(void) { return 128 << 8; } ;; before test: movia2, 0x100 addmi a2, a2, 0x7f00 ret.n ;; after test: movi.n a2, 1