Skip to content
Snippets Groups Projects
Commit ee7e77e9 authored by liuhongt's avatar liuhongt
Browse files

i386: Optimize EQ/NE comparison between avx512 kmask and -1.

r15-974-gbf7745f887c765e06f2e75508f263debb60aeb2e has optimized for
jcc/setcc, but missed movcc.
The patch supports movcc.

gcc/ChangeLog:

	PR target/117232
	* config/i386/sse.md (*kortest_cmp<SWI1248_AVX512BWDQ_64:mode>_movqicc):
	New define_insn_and_split.
	(*kortest_cmp<SWI1248_AVX512BWDQ_64:mode>_mov<SWI248:mode>cc):
	Ditto.

gcc/testsuite/ChangeLog:

	* gcc.target/i386/pr117232-1.c: New test.
	* gcc.target/i386/pr117232-apx-1.c: New test.
parent 01ed5c62
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment