]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [sparc] use -mtune in alignment tuning test
authorAlexandre Oliva <oliva@adacore.com>
Fri, 7 Feb 2025 07:10:57 +0000 (04:10 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 7 Feb 2025 07:10:57 +0000 (04:10 -0300)
If -mcpu=leon3 is present in the command line for a test run,
overriding it with -mcpu=niagara7 is not enough to override the tuning
for leon3 selected by the previous -mcpu option.

niagara7-align.c tests for niagara7 alignment tuning, so use -mtune
rather than -mcpu.

for  gcc/testsuite/ChangeLog

* gcc.target/sparc/niagara7-align.c: Use -mtune.

gcc/testsuite/gcc.target/sparc/niagara7-align.c

index a46aac17c32948dc02cb1cb70d47616ebbf9fede..01a8cb621d5c05819d598aad923b40a5b595bfec 100644 (file)
@@ -1,4 +1,4 @@
 /* { dg-do compile } */
-/* { dg-options "-falign-functions -mcpu=niagara7" } */
+/* { dg-options "-falign-functions -mtune=niagara7" } */
 /* { dg-final { scan-assembler "\.align 64" } } */
 void foo(void) {}