From: Torbjorn Granlund Date: Wed, 15 Jun 1994 02:32:05 +0000 (+0000) Subject: (cmplsrcb_operand): New predicate. X-Git-Tag: misc/cutover-egcs-0~6466 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f7f03f812912116cbdbf302f81ac95e16ad6615;p=thirdparty%2Fgcc.git (cmplsrcb_operand): New predicate. From-SVN: r7477 --- diff --git a/gcc/config/a29k/a29k.c b/gcc/config/a29k/a29k.c index 08363ed0c594..4c9784111b1b 100644 --- a/gcc/config/a29k/a29k.c +++ b/gcc/config/a29k/a29k.c @@ -282,6 +282,22 @@ srcb_operand (op, mode) return gpc_reg_operand (op, mode); } +int +cmplsrcb_operand (op, mode) + register rtx op; + enum machine_mode mode; +{ + if (GET_CODE (op) == CONST_INT + && (mode == QImode + || (INTVAL (op) & 0xffffff00) == 0xffffff00)) + return 1; + + if (GET_MODE (op) != mode && mode != VOIDmode) + return 0; + + return gpc_reg_operand (op, mode); +} + /* Return 1 if OP is either an immediate or a general register. This is used for the input operand of mtsr/mtrsim. */