[gcc(refs/vendors/ARM/heads/morello)] morello testsuite: Fix up const-null.c test
Alex Coplan
acoplan@gcc.gnu.org
Mon Nov 14 13:24:16 GMT 2022
https://gcc.gnu.org/g:d11f8e14fe75fd148e42464cc0b489e2de8b7574
commit d11f8e14fe75fd148e42464cc0b489e2de8b7574
Author: Alex Coplan <alex.coplan@arm.com>
Date: Tue Nov 8 13:42:03 2022 +0000
morello testsuite: Fix up const-null.c test
For this test, when compiling for base AArch64 we generate mov x0, 0,
but on purecap we generate mov x0, xzr. Either is fine, so accept both
in the check-function-bodies pattern.
Diff:
---
gcc/testsuite/gcc.target/aarch64/morello/const-null.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/aarch64/morello/const-null.c b/gcc/testsuite/gcc.target/aarch64/morello/const-null.c
index dc7d186e2e8..815987254d3 100644
--- a/gcc/testsuite/gcc.target/aarch64/morello/const-null.c
+++ b/gcc/testsuite/gcc.target/aarch64/morello/const-null.c
@@ -7,7 +7,7 @@
/*
** test_ret:
-** mov x0, xzr
+** mov x0, (0|xzr)
** ret
*/
void*
More information about the Gcc-cvs
mailing list