(cmplsrcb_operand): New predicate.
authorTorbjorn Granlund <tege@gnu.org>
Wed, 15 Jun 1994 02:32:05 +0000 (02:32 +0000)
committerTorbjorn Granlund <tege@gnu.org>
Wed, 15 Jun 1994 02:32:05 +0000 (02:32 +0000)
From-SVN: r7477

gcc/config/a29k/a29k.c

index 08363ed..4c97841 100644 (file)
@@ -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.  */