]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64, testsuite: Fix up pr71727.c
authorAlex Coplan <alex.coplan@arm.com>
Wed, 11 Oct 2023 15:57:32 +0000 (15:57 +0000)
committerAlex Coplan <alex.coplan@arm.com>
Thu, 19 Oct 2023 10:12:23 +0000 (11:12 +0100)
The test is trying to check that we don't use q-register stores with
-mstrict-align, so actually check specifically for that.

This is a prerequisite to avoid regressing:

scan-assembler-not "add\tx0, x0, :"

with the upcoming ldp fusion pass, as we change where the ldps are
formed such that a register is used rather than a symbolic (lo_sum)
address for the first load.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/pr71727.c: Adjust scan-assembler-not to
make sure we don't have q-register stores with -mstrict-align.

gcc/testsuite/gcc.target/aarch64/pr71727.c

index 41fa72bc67e910cac15c1e1712fd3aebd433aa0f..226258a76fe9f611b5ea593fee459c72e0d56cd2 100644 (file)
@@ -30,4 +30,4 @@ _start (void)
 }
 
 /* { dg-final { scan-assembler-times "mov\tx" 5 {target lp64} } } */
-/* { dg-final { scan-assembler-not "add\tx0, x0, :" {target lp64} } } */
+/* { dg-final { scan-assembler-not {st[rp]\tq[0-9]+} {target lp64} } } */