This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][AArch64][obvious] Gate fuse_adrp_add_1.c test on aarch64_small
- From: Kyrill Tkachov <kyrylo dot tkachov at arm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 01 Dec 2014 17:27:10 +0000
- Subject: [PATCH][AArch64][obvious] Gate fuse_adrp_add_1.c test on aarch64_small
- Authentication-results: sourceware.org; auth=none
Hi all,
I noticed that this test depends on adrp+add sequences being used for
constants, which only happens when the memory model used is small. If
tiny or large is used then the required adrp+add sequences are not
generated, making the test pointless for them. This patch guards the
test on the small memory model.
Before this the test failed with -mcmodel=tiny and large. Now it appears
UNSUPPORTED. With -mcmodel=small (which is the default) it PASSes.
Committed as obvious with r218232.
Thanks,
Kyrill
2014-12-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.target/aarch64/fuse_adrp_add_1.c: Gate test on aarch64_small.
Index: gcc/testsuite/gcc.target/aarch64/fuse_adrp_add_1.c
===================================================================
--- gcc/testsuite/gcc.target/aarch64/fuse_adrp_add_1.c (revision 218224)
+++ gcc/testsuite/gcc.target/aarch64/fuse_adrp_add_1.c (working copy)
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target aarch64_small } */
/* { dg-options "-O3 -mcpu=cortex-a57" } */
enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS,