predicates.md (pcrel_address): New define_predicate.
authorBill Schmidt <wschmidt@linux.ibm.com>
Fri, 31 May 2019 00:38:35 +0000 (00:38 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Fri, 31 May 2019 00:38:35 +0000 (00:38 +0000)
commita1842c37af6ab85a81d556861f33c2f38ce8b8f6
tree6efeb0c55b16fbda09311ff54cff8e30fb6baaa1
parent47a665af3bc5bc14bff95f66b3a051a0c8d14fe1
predicates.md (pcrel_address): New define_predicate.

2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
    Michael Meissner  <meissner@linux.ibm.com>

* config/rs6000/predicates.md (pcrel_address): New define_predicate.
(prefixed_mem_operand): Likewise.
(non_prefixed_mem_operand): Likewise.
* config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
prototype.
* config/rs6000/rs6000.c (print_operand_address): Handle
PC-relative addresses.
(mode_supports_prefixed_address_p): New function.
(rs6000_prefixed_address): New function.
* config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
(SYMBOL_REF_PCREL_P): Likewise.

Co-Authored-By: Michael Meissner <meissner@linux.ibm.com>
From-SVN: r271798
gcc/ChangeLog
gcc/config/rs6000/predicates.md
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.h