Commit a9a54fe8 by Torbjorn Granlund

(pc_or_label_operand): New predicate.

From-SVN: r3765
parent e19ee659
...@@ -443,6 +443,14 @@ arith32_operand (op, mode) ...@@ -443,6 +443,14 @@ arith32_operand (op, mode)
return register_operand (op, mode) || GET_CODE (op) == CONST_INT; return register_operand (op, mode) || GET_CODE (op) == CONST_INT;
} }
int
pc_or_label_operand (op, mode)
rtx op;
enum machine_mode mode;
{
return (GET_CODE (op) == PC || GET_CODE (op) == LABEL_REF);
}
/* Legitimize PIC addresses. If the address is already /* Legitimize PIC addresses. If the address is already
position-independent, we return ORIG. Newly generated position-independent, we return ORIG. Newly generated
position-independent addresses go to REG. If we need more position-independent addresses go to REG. If we need more
......
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