diff options
author | Xi Ruoyao <xry111@xry111.site> | 2025-01-19 21:26:59 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2025-02-07 19:55:47 +0800 |
commit | bad9a7303a4b4ec8192e2ab5da49ab1a9cc86347 (patch) | |
tree | a83b1f91b4fdac6d9e09a6fc5e3fc0ead4acbf3c /gcc/tree-vectorizer.h | |
parent | 075ddb5226c40c4d86ab56b7788882822fb6494e (diff) | |
download | gcc-bad9a7303a4b4ec8192e2ab5da49ab1a9cc86347.zip gcc-bad9a7303a4b4ec8192e2ab5da49ab1a9cc86347.tar.gz gcc-bad9a7303a4b4ec8192e2ab5da49ab1a9cc86347.tar.bz2 |
LoongArch: Correct the mode for mask{eq,ne}z
For mask{eq,ne}z, rk is always compared with 0 in the full width, thus
the mode for rk should be X.
I found the issue reviewing a patch fixing a similar issue for RISC-V
XTheadCondMov [1], but interestingly I cannot find a test case really
blowing up on LoongArch. But as the issue is obvious enough let's fix
it anyway so it won't blow up in the future.
[1]: https://gcc.gnu.org/pipermail/gcc-patches/2025-January/674004.html
gcc/ChangeLog:
* config/loongarch/loongarch.md
(*sel<code><GPR:mode>_using_<GPR2:mode>): Rename to ...
(*sel<code><GPR:mode>_using_<X:mode>): ... here.
(GPR2): Remove as nothing uses it now.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions