This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Commit: FR30: Fix di_operand and nonimmediate_di_operand predicates
- From: Nick Clifton <nickc at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: yselkowi at redhat dot com
- Date: Wed, 04 Feb 2015 13:41:42 +0000
- Subject: Commit: FR30: Fix di_operand and nonimmediate_di_operand predicates
- Authentication-results: sourceware.org; auth=none
Hi Guys,
I am checking in the patch below to add SUBREG to the list of rtx
codes accepted by the di_operand and nonimmediate_di_operand
predicates in the FR30 backend. This should resolve PR 64408.
Cheers
Nick
gcc/ChangeLog
2015-02-04 Nick Clifton <nickc@redhat.com>
PR target/64408
* config/fr30/predicates.md (di_operand): Add SUBREG to the list
of accepted codes.
(nonimmediate_di_operand): Likewise.
Index: gcc/config/fr30/predicates.md
===================================================================
--- gcc/config/fr30/predicates.md (revision 220398)
+++ gcc/config/fr30/predicates.md (working copy)
@@ -64,7 +64,7 @@
;; Returns TRUE if OP is a valid operand of a DImode operation.
(define_predicate "di_operand"
- (match_code "const_int,const_double,reg,mem")
+ (match_code "const_int,const_double,reg,subreg,mem")
{
if (register_operand (op, mode))
return TRUE;
@@ -92,7 +92,7 @@
;; Returns TRUE if OP is a DImode register or MEM.
(define_predicate "nonimmediate_di_operand"
- (match_code "reg,mem")
+ (match_code "reg,subreg,mem")
{
if (register_operand (op, mode))
return TRUE;