Commit 8088469d by Richard Kenner

(ior_operand): New function.

From-SVN: r6330
parent bf500664
...@@ -173,6 +173,20 @@ and_operand (op, mode) ...@@ -173,6 +173,20 @@ and_operand (op, mode)
return register_operand (op, mode); return register_operand (op, mode);
} }
/* Return 1 if OP is a valid first operand to an IOR insn. */
int
ior_operand (op, mode)
register rtx op;
enum machine_mode mode;
{
if (GET_CODE (op) == CONST_INT)
return ((unsigned HOST_WIDE_INT) INTVAL (op) < 0x100
|| (unsigned HOST_WIDE_INT) ~ INTVAL (op) < 0x100);
return register_operand (op, mode);
}
/* Return 1 if OP is a constant that is the width, in bits, of an integral /* Return 1 if OP is a constant that is the width, in bits, of an integral
mode smaller than DImode. */ mode smaller than DImode. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment