-
- Downloads
LoongArch: Implement vector cbranch optab for LSX and LASX
In order to support vectorization of loops with multiple exits, this
patch adds the implementation of the conditional branch optab for
LoongArch LSX/LASX instructions.
This patch causes the gen-vect-{2,25}.c tests to fail. This is because
the support for vectorizing loops with multiple exits has vectorized
the loop checking the results. The failure is due to an issue in the
test case's own implementation.
gcc/ChangeLog:
* config/loongarch/simd.md (cbranch<mode>4): New expander.
gcc/testsuite/ChangeLog:
* lib/target-supports.exp (check_effective_target_vect_early_break_hw,
check_effective_target_vect_early_break): Support LoongArch LSX.
* gcc.target/loongarch/vector/lasx/lasx-vseteqz.c: New test.
* gcc.target/loongarch/vector/lsx/lsx-vseteqz.c: New test.
Co-authored-by:
Deng Jianbo <dengjianbo@loongson.cn>
Showing
- gcc/config/loongarch/simd.md 30 additions, 0 deletionsgcc/config/loongarch/simd.md
- gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vseteqz.c 14 additions, 0 deletions...testsuite/gcc.target/loongarch/vector/lasx/lasx-vseteqz.c
- gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vseteqz.c 15 additions, 0 deletionsgcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vseteqz.c
- gcc/testsuite/lib/target-supports.exp 2 additions, 0 deletionsgcc/testsuite/lib/target-supports.exp
Loading
Please register or sign in to comment