This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][AArch64][obvious] Gate fuse_adrp_add_1.c test on aarch64_small


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,

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]