Patchwork [AArch64] allow 16 bytes constants in constant pool.

login
register
mail settings
Submitter Marcus Shawcroft
Date Sept. 6, 2012, 2:30 p.m.
Message ID <5048B37A.1000204@arm.com>
Download mbox | patch
Permalink /patch/182194/
State New
Headers show

Comments

Marcus Shawcroft - Sept. 6, 2012, 2:30 p.m.
Relax the logic that prevents TFmode constants being addressed in the 
constant pool.

2012-09-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>

         * config/aarch64/aarch64.c (aarch64_classify_address):
         Allow 16 byte modes in constant pool.
Marcus Shawcroft - Sept. 10, 2012, 7:36 a.m.
On 06/09/12 15:30, Marcus Shawcroft wrote:
> Relax the logic that prevents TFmode constants being addressed in the
> constant pool.
>
> 2012-09-06  Marcus Shawcroft<marcus.shawcroft@arm.com>
>
>           * config/aarch64/aarch64.c (aarch64_classify_address):
>           Allow 16 byte modes in constant pool.
>
>

I've just committed this patch to the aarch64 branch.
/Marcus

Patch

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 310c1a0..aa90402 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -2835,9 +2835,7 @@  aarch64_classify_address (struct aarch64_address_info *info,
     case LABEL_REF:
       /* load literal: pc-relative constant pool entry.  */
       info->type = ADDRESS_SYMBOLIC;
-      if (outer_code != PARALLEL
-	  && (GET_MODE_SIZE (mode) == 4
-	      || GET_MODE_SIZE (mode) == 8))
+      if (outer_code != PARALLEL)
 	{
 	  rtx sym, addend;