aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorJiahao Xu <xujiahao@loongson.cn>2024-12-18 15:45:17 +0800
committerLulu Cheng <chenglulu@loongson.cn>2024-12-27 11:42:52 +0800
commit4731ead79fac259258dbb027090f3d085f518040 (patch)
tree586c53ca1b428f60eba4444e0e68d14b205b98e6 /gcc/c-family
parentc6f7a298b8feb6cc1e915611adb3c6a387e06e55 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
LoongArch: Support immediate_operand for vec_cmpHEADtrunkmaster
We can't vectorize the code into instructions like vslti.w that compare with immediate_operand, because we miss immediate_operand support for integer comparisons. gcc/ChangeLog: * config/loongarch/lasx.md (vec_cmp<mode><mode256_i>): Remove. (vec_cmpu<ILASX:mode><mode256_i>): Remove. * config/loongarch/loongarch.cc (loongarch_expand_lsx_cmp): Ensure vector comparison instructions support CMP_OP1. * config/loongarch/lsx.md (vec_cmp<mode><mode_i>): Remove. (vec_cmpu<ILSX:mode><mode_i>): Remove. * config/loongarch/simd.md (ALLVEC, allmode_i): New mode iterators. (vec_cmp<mode><allmode_i>): New define_expand. (vec_cmpu<mode><allmode_i>): Likewise. gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-vcond-3.c: New test.
Diffstat (limited to 'gcc/c-family')
0 files changed, 0 insertions, 0 deletions