Re: [PATCH] LoongArch: Optimize LSX vector shuffle on floating-point vector

2023-11-21 Thread chenglulu
在 2023/11/19 下午3:01, Xi Ruoyao 写道: The vec_perm expander was wrongly defined. GCC internal says: Operand 3 is the “selector”. It is an integral mode vector of the same width and number of elements as mode M. With this mistake, the generic code manages to work around and it ends up creating

[PATCH] LoongArch: Optimize LSX vector shuffle on floating-point vector

2023-11-18 Thread Xi Ruoyao
The vec_perm expander was wrongly defined. GCC internal says: Operand 3 is the “selector”. It is an integral mode vector of the same width and number of elements as mode M. With this mistake, the generic code manages to work around and it ends up creating some very nasty code for a simple __bui