From 5e85ab88f180bbaf34f36a55cd83cad81c682b71 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sun, 27 Mar 2011 22:09:36 +0000 Subject: [PATCH] re PR target/48288 (ld: Unsatisfied symbol "__iordi3" in file /test/gnu/gcc/objdir/./gcc/libgcc_eh.a) PR target/48288 * config/pa/predicates.md (reg_or_ior_operand): New predicate. * config/pa/pa.md (iordi3): Use new predicate in expander. (iorsi3): Likewise. From-SVN: r171582 --- gcc/ChangeLog | 7 +++++++ gcc/config/pa/pa.md | 11 +++-------- gcc/config/pa/predicates.md | 9 +++++++++ 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 159cc114f9c..b054e37ab42 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2011-03-27 John David Anglin + + PR target/48288 + * config/pa/predicates.md (reg_or_ior_operand): New predicate. + * config/pa/pa.md (iordi3): Use new predicate in expander. + (iorsi3): Likewise. + 2011-03-27 Anatoly Sokolov * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE, diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md index 24317a5c4f3..fb507ccfa3a 100644 --- a/gcc/config/pa/pa.md +++ b/gcc/config/pa/pa.md @@ -5686,7 +5686,7 @@ (define_expand "iordi3" [(set (match_operand:DI 0 "register_operand" "") (ior:DI (match_operand:DI 1 "register_operand" "") - (match_operand:DI 2 "ior_operand" "")))] + (match_operand:DI 2 "reg_or_ior_operand" "")))] "" " { @@ -5726,14 +5726,9 @@ (define_expand "iorsi3" [(set (match_operand:SI 0 "register_operand" "") (ior:SI (match_operand:SI 1 "register_operand" "") - (match_operand:SI 2 "arith32_operand" "")))] + (match_operand:SI 2 "reg_or_ior_operand" "")))] "" - " -{ - if (! (ior_operand (operands[2], SImode) - || register_operand (operands[2], SImode))) - operands[2] = force_reg (SImode, operands[2]); -}") + "") (define_insn "" [(set (match_operand:SI 0 "register_operand" "=r,r") diff --git a/gcc/config/pa/predicates.md b/gcc/config/pa/predicates.md index 350e42be103..78b7915e255 100644 --- a/gcc/config/pa/predicates.md +++ b/gcc/config/pa/predicates.md @@ -409,6 +409,15 @@ || (GET_CODE (op) == CONST_INT && and_mask_p (INTVAL (op)))); }) +;; True iff OP can be used to compute (reg | OP). + +(define_predicate "reg_or_ior_operand" + (match_code "subreg,reg,const_int") +{ + return (register_operand (op, mode) + || (GET_CODE (op) == CONST_INT && ior_mask_p (INTVAL (op)))); +}) + ;; True iff depi can be used to compute (reg | OP). (define_predicate "ior_operand" -- 2.30.2