[PATCH] vect-pragma-target-2.C: Compile with -march=x86-64
"H.J. Lu" <[email protected]>
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <CAMe9rOrtyvRYLRoyqsg7wHCxE5w=Avo2c4fkVTN_tm=aLhN8cg@mail.gmail.com> |
Compile vect-pragma-target-2.C with -march=x86-64 so that x86-64-v2 and above features aren't enabled on x86-64-v4 machines when GCC is configured with --with-arch=native --with-cpu=native PR testsuite/126923 * g++.target/i386/vect-pragma-target-2.C (dg-options): Add -march=x86-64. -- H.J.
0001-vect-pragma-target-2.C-Compile-with-march-x86-64.patch
(text/x-patch, 1.4 KB)
From 905e8043f12b30d1afd9ad3f92e44909cdc4f6d4 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" <[email protected]> Date: Tue, 18 Aug 2026 09:08:57 +0800 Subject: [PATCH] vect-pragma-target-2.C: Compile with -march=x86-64 Compile vect-pragma-target-2.C with -march=x86-64 so that x86-64-v2 and above features aren't enabled on x86-64-v4 machines when GCC is configured with --with-arch=native --with-cpu=native PR testsuite/126923 * g++.target/i386/vect-pragma-target-2.C (dg-options): Add -march=x86-64. Signed-off-by: H.J. Lu <[email protected]> --- gcc/testsuite/g++.target/i386/vect-pragma-target-2.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.target/i386/vect-pragma-target-2.C b/gcc/testsuite/g++.target/i386/vect-pragma-target-2.C index b85bc93d845..d83d1a9bd2d 100644 --- a/gcc/testsuite/g++.target/i386/vect-pragma-target-2.C +++ b/gcc/testsuite/g++.target/i386/vect-pragma-target-2.C @@ -1,5 +1,5 @@ /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */ -/* { dg-options "-O0" } */ +/* { dg-options "-O0 -march=x86-64" } */ /* { dg-final { scan-assembler-times "paddd.+xmm\[0-9]+" 1 } } */ /* { dg-final { scan-assembler-times "vfmadd132ps.+ymm\[0-9]+" 1 } } */ /* { dg-final { scan-assembler-times "vpaddw.+zmm\[0-9]+" 1 } } */ -- 2.55.0