diff options
author | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-08-28 22:38:19 -0700 |
---|---|---|
committer | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-08-29 00:38:30 -0700 |
commit | 595bc6263adaa7a172b899db8381479bc50fd083 (patch) | |
tree | 5f76d844ebfd57d2819f62b545cefd8bb4ee6752 /libjava | |
parent | 944c3225b38ffb15b6b461e1d881f3a85b00911b (diff) | |
download | gcc-595bc6263adaa7a172b899db8381479bc50fd083.zip gcc-595bc6263adaa7a172b899db8381479bc50fd083.tar.gz gcc-595bc6263adaa7a172b899db8381479bc50fd083.tar.bz2 |
i386: Fix vect-pragma-target-[12].c testcase for -march=XYZ [PR120643]
These 2 testcases were originally designed for the default -march= of
x86_64 so if you pass -march=native (on a target with AVX512 enabled),
they will fail. It fix this, we add `-mno-sse3 -mtune=generic`
to the options to force a specific arch to the testcase.
Changes since v1:
* v2: Use -mtune=generic instead of -mprefer-vector-width=512.
Tested on a skylake-avx512 machine with -march=native.
PR testsuite/120643
gcc/testsuite/ChangeLog:
* gcc.target/i386/vect-pragma-target-1.c: Add `-mno-sse3 -mtune=generic`
to the options.
* gcc.target/i386/vect-pragma-target-2.c: Likewise.
Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions