]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Support partial signbit/xorsign/copysign/abs/neg/and/xor/ior/andn for V2BF...
authorLevy Hsu <admin@levyhsu.com>
Mon, 2 Sep 2024 03:57:46 +0000 (13:27 +0930)
committerLevy Hsu <admin@levyhsu.com>
Thu, 5 Sep 2024 01:40:25 +0000 (01:40 +0000)
commitd0c86be1ce7131aeca2cf3304a8d65a00da4f12a
treecca3e479675a52050307d322105a88295aa51a13
parentb851bce473d8e573b1b586c71d47e71067b4fa66
i386: Support partial signbit/xorsign/copysign/abs/neg/and/xor/ior/andn for V2BF/V4BF

This patch adds support for bf16 operations in V2BF and V4BF modes on i386,
handling signbit, xorsign, copysign, abs, neg, and various logical operations.

gcc/ChangeLog:

* config/i386/i386.cc (ix86_build_const_vector): Add V2BF/V4BF.
(ix86_build_signbit_mask): Add V2BF/V4BF.
* config/i386/mmx.md: Modified supported logic op to use VHBF_32_64.

gcc/testsuite/ChangeLog:

* gcc.target/i386/part-vect-absnegbf.c: New test.
gcc/config/i386/i386.cc
gcc/config/i386/mmx.md
gcc/testsuite/gcc.target/i386/part-vect-absnegbf.c [new file with mode: 0644]