aarch64.c (aarch64_classify_address): Support PC-relative load in SI modes and above only.

* config/aarch64/aarch64.c (aarch64_classify_address): Support
	PC-relative load in SI modes and above only.

From-SVN: r197107
This commit is contained in:
Sofiane Naci 2013-03-26 14:41:11 +00:00 committed by Sofiane Naci
parent a76213b9b3
commit 795175513e
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
* config/aarch64/aarch64.c (aarch64_classify_address): Support
PC-relative load in SI modes and above only.
2013-03-26 Xinyu Qi <xyqi@marvell.com>
* config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.

View File

@ -2926,9 +2926,10 @@ aarch64_classify_address (struct aarch64_address_info *info,
case CONST:
case SYMBOL_REF:
case LABEL_REF:
/* load literal: pc-relative constant pool entry. */
/* load literal: pc-relative constant pool entry. Only supported
for SI mode or larger. */
info->type = ADDRESS_SYMBOLIC;
if (outer_code != PARALLEL)
if (outer_code != PARALLEL && GET_MODE_SIZE (mode) >= 4)
{
rtx sym, addend;