Re: [PATCH v2] LoongArch: Optimize immediate load.

2022-11-01 Thread Lulu Cheng
在 2022/11/1 下午4:02, Xi Ruoyao 写道: On Tue, 2022-11-01 at 14:19 +0800, Lulu Cheng wrote: +;; Load immediate to the 32-63 bits of the source register. +(define_insn_and_split "load_hi32" +  [(set (match_operand:DI 0 "register_operand" "=r") +   (ior:DI + (and:DI (match_operand:DI 1 "r

Re: [PATCH v2] LoongArch: Optimize immediate load.

2022-11-01 Thread Xi Ruoyao via Gcc-patches
On Tue, 2022-11-01 at 14:19 +0800, Lulu Cheng wrote: > +;; Load immediate to the 32-63 bits of the source register. > +(define_insn_and_split "load_hi32" > +  [(set (match_operand:DI 0 "register_operand" "=r") > +   (ior:DI > + (and:DI (match_operand:DI 1 "register_operand" "0") > +