public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-10359] testsuite, jit, Darwin: Handle Mach-O in assembler tests.
@ 2024-04-20 14:43 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2024-04-20 14:43 UTC (permalink / raw)
  To: gcc-cvs

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

commit r12-10359-gb358e73b7d642afa7a2b836283910ef7539dafe2
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Jan 13 13:40:51 2024 +0000

    testsuite, jit, Darwin: Handle Mach-O in assembler tests.
    
    Several of the jit tests check for assembler-specific output
    which differs on Mach-O from ELF.
    
    This patch uses the facility to make the scans target-dependent
    and adds handling for darwin.
    
    gcc/testsuite/ChangeLog:
    
            * jit.dg/test-setting-alignment.c:  Handle Darwin in
            jit-verify-assemble output.
    
    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
    (cherry picked from commit 283e3a974bf08e4fb64d51d2062e1f7ed7482ff4)

Diff:
---
 gcc/testsuite/jit.dg/test-setting-alignment.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/jit.dg/test-setting-alignment.c b/gcc/testsuite/jit.dg/test-setting-alignment.c
index 8489df9c6b9..14edc723f61 100644
--- a/gcc/testsuite/jit.dg/test-setting-alignment.c
+++ b/gcc/testsuite/jit.dg/test-setting-alignment.c
@@ -62,5 +62,6 @@ create_code (gcc_jit_context *ctxt, void *user_data)
 }
 
 /* { dg-final { jit-verify-output-file-was-created "" } } */
-/* { dg-final { jit-verify-assembler-output ".comm	foo,4,8" } } */
+/* { dg-final { jit-verify-assembler-output ".comm	foo,4,8" { target { ! *-*-darwin* } } } } */
+/* { dg-final { jit-verify-assembler-output ".comm\\s_foo,4,3" { target *-*-darwin* } } } */
 /* { dg-final { jit-verify-assembler-output "movl	-16\\\(%rbp\\\), %eax" } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-20 14:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-20 14:43 [gcc r12-10359] testsuite, jit, Darwin: Handle Mach-O in assembler tests Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).