]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, jit, Darwin: Handle Mach-O in assembler tests.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 13 Jan 2024 13:40:51 +0000 (13:40 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 20 Apr 2024 14:43:45 +0000 (15:43 +0100)
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)

gcc/testsuite/jit.dg/test-setting-alignment.c

index 8489df9c6b9366d1ab92d959c3b1b2a31a569611..14edc723f610614080b45c38a81c213296af65e3 100644 (file)
@@ -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" } } */