Re:[pushed] [PATCH 1/2] LoongArch: Optimize switch with sign-extended index.

2023-09-03 Thread chenglulu
Pushed to r14-3642. The description information was modified and XLEN was changed to GRLEN. Thanks!:-) 在 2023/9/2 下午4:09, WANG Xuerui 写道: On 9/2/23 14:24, Lulu Cheng wrote: The patch refers to the submission of RISCV 7bbce9b50302959286381d9177818642bceaf301. gcc/ChangeLog: * config/loo

Re: [PATCH 1/2] LoongArch: Optimize switch with sign-extended index.

2023-09-02 Thread WANG Xuerui
On 9/2/23 14:24, Lulu Cheng wrote: The patch refers to the submission of RISCV 7bbce9b50302959286381d9177818642bceaf301. gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_extend_comparands): In unsigned QImode test, check for sign extended subreg and/or constant

[PATCH 1/2] LoongArch: Optimize switch with sign-extended index.

2023-09-01 Thread Lulu Cheng
The patch refers to the submission of RISCV 7bbce9b50302959286381d9177818642bceaf301. gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_extend_comparands): In unsigned QImode test, check for sign extended subreg and/or constant operands, and do a sign extend in tha