]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite, jit: Allow for target-specific assembler scans.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 13 Jan 2024 13:30:08 +0000 (13:30 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 20 Apr 2024 14:43:26 +0000 (15:43 +0100)
commite73c4d7a236da0a1a9232861fe32bca0e5304870
treee9e6e4855845c7d662a3b3fe17d7377c94cce788
parent12e4b9ce523bd60acfb3d5567e493822fcdcf698
testsuite, jit: Allow for target-specific assembler scans.

If we want to support multiple object formats and to allow for
scan-assembler tests, we need to make it possible to adjust the
tests on a per-target basis.

This adds similar mechamisms to jit-verify-assembler-output
to those used for the general scan-assembler dg directives.

As an aside; it would, perhaps, be possible to integrate this more
with scanasm.exp (which would also give access to function body
scanning) but I did not attempt that for this patch.

After this, we can accept things like:
... { jit-verify-assembler-output "......" { target *-*-darwin* } } }

gcc/testsuite/ChangeLog:

* jit.dg/jit.exp: Accept target clauses in jit-verify-assembler
handling.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
(cherry picked from commit e0e3ef18a047d54d63be91d82a55448851353260)
gcc/testsuite/jit.dg/jit.exp