[gcc(refs/vendors/ARM/heads/morello)] morello testsuite: Fix up const-pool-1.c test

Stam Markianos-Wright stammark@gcc.gnu.org
Tue Nov 22 12:42:52 GMT 2022


https://gcc.gnu.org/g:e448c8a34a5188d6ff570c59ed60c5280c7b3ca9

commit e448c8a34a5188d6ff570c59ed60c5280c7b3ca9
Author: Alex Coplan <alex.coplan@arm.com>
Date:   Mon Nov 7 22:20:27 2022 +0000

    morello testsuite: Fix up const-pool-1.c test
    
    The check-function-bodies part of this test depends on -mcmodel=small
    and FAILs when testing with e.g. -mcmodel=tiny. This patch therefore
    only runs the check-function-bodies part of this test when testing with
    the small code model.

Diff:
---
 gcc/testsuite/gcc.target/aarch64/morello/const-pool-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/aarch64/morello/const-pool-1.c b/gcc/testsuite/gcc.target/aarch64/morello/const-pool-1.c
index b780df5c1f4..e73da2612e8 100644
--- a/gcc/testsuite/gcc.target/aarch64/morello/const-pool-1.c
+++ b/gcc/testsuite/gcc.target/aarch64/morello/const-pool-1.c
@@ -1,6 +1,6 @@
 /* { dg-do assemble } */
 /* { dg-additional-options "-save-temps" } */
-/* { dg-final { check-function-bodies "**" ""  { {-O[123s]} } } } */
+/* { dg-final { check-function-bodies "**" ""  {-O[123s]} {target aarch64_small} } } */
 
 /*
 ** get_double:


More information about the Gcc-cvs mailing list