i386: Prevent splitting to xmm16+ when !TARGET_AVX512VL
commit1df490edd48042b07aa780b088148a9118cbcb46
authorHaochen Jiang <haochen.jiang@intel.com>
Thu, 19 Oct 2023 08:39:16 +0000 (19 16:39 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Mon, 23 Oct 2023 02:02:37 +0000 (23 10:02 +0800)
tree7b0c3903e058356f0d377e2a3800370922c0211d
parent85858c71a89dfe0d9e7d96fc9f7bdf1a18df65ba
i386: Prevent splitting to xmm16+ when !TARGET_AVX512VL

Currently, there will be a chance in split to use x/ymm16+ w/o AVX512VL,
which finally leads to an ICE as pr111753 does.

This patch aims to fix that.

gcc/ChangeLog:

PR target/111753
* config/i386/i386.cc (ix86_standard_x87sse_constant_load_p):
Do not split to xmm16+ when !TARGET_AVX512VL.

gcc/testsuite/ChangeLog:

PR target/111753
* gcc.target/i386/pr111753.c: New test.
gcc/config/i386/i386.cc
gcc/testsuite/gcc.target/i386/pr111753.c [new file with mode: 0644]