]> git.ipfire.org Git - thirdparty/gcc.git/commit
AVX10.2: Support compare instructions
authorZhang, Jun <jun.zhang@intel.com>
Mon, 26 Aug 2024 02:53:54 +0000 (10:53 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Mon, 26 Aug 2024 05:22:04 +0000 (13:22 +0800)
commit576bd309ded9dfe258023f26924c064a7bf12875
tree650603cfdc7c4f3eb6b659b0b40d9c21a9cb2942
parentf6fe2962daf7b8d8532c768c3b9eab00f99cce5b
AVX10.2: Support compare instructions

gcc/ChangeLog:

* config/i386/i386-expand.cc
(ix86_ssecom_setcc): Mention behavior change on flags.
(ix86_expand_sse_comi): Handle AVX10.2 behavior.
(ix86_expand_sse_comi_round): Ditto.
(ix86_expand_round_builtin): Ditto.
(ix86_expand_builtin): Change function call.
* config/i386/i386.md (UNSPEC_COMX): New unspec.
* config/i386/sse.md
(avx10_2_v<unord>comx<ssemodesuffix><round_saeonly_name>): New.
(<sse>_<unord>comi<round_saeonly_name>): Add HFmode.

gcc/testsuite/ChangeLog:

* gcc.target/i386/avx10_2-compare-1.c: New test.

Co-authored-by: Haochen Jiang <haochen.jiang@intel.com>
Co-authored-by: Hongtao Liu <hongtao.liu@intel.com>
gcc/config/i386/i386-expand.cc
gcc/config/i386/i386.md
gcc/config/i386/sse.md
gcc/testsuite/gcc.target/i386/avx10_2-compare-1.c [new file with mode: 0644]