]> git.ipfire.org Git - thirdparty/gcc.git/commit
Move runtime check into a separate function and guard it with target ("no-avx")
authorliuhongt <hongtao.liu@intel.com>
Wed, 3 Jul 2024 06:47:33 +0000 (14:47 +0800)
committerliuhongt <hongtao.liu@intel.com>
Wed, 3 Jul 2024 07:27:00 +0000 (15:27 +0800)
commit239ad907b1fc08874042f8bea5f61eaf3ba2877d
treeaef19400e6651a8b9a79c8c0df00511554aa1953
parentab3e3d2f0564c2eb0640de3f4d0a50e1fcc8c318
Move runtime check into a separate function and guard it with target ("no-avx")

The patch can avoid SIGILL on non-AVX512 machine due to kmovd is
generated in dynamic check.

gcc/testsuite/ChangeLog:

PR target/115748
* gcc.target/i386/avx512-check.h: Move runtime check into a
separate function and guard it with target ("no-avx").
gcc/testsuite/gcc.target/i386/avx512-check.h