int op;
rtx x, y;
{
- return (int)CCmode;
+ return (int)SImode;
}
/* X and Y are two things to compare using CODE. Emit the compare insn and
{
rtx x;
- if (GET_MODE (op) != CCmode && GET_MODE (op) != VOIDmode)
+ if (GET_MODE (op) != SImode && GET_MODE (op) != VOIDmode)
return FALSE;
if (GET_CODE (op) != NE && GET_CODE (op) != EQ)
rtx insn;
{
static char buffer [100];
-
+ char * dest = reg_names [REGNO (operands [0])];
+
buffer [0] = 0;
/* Destination must be a register. */
if (! conditional_move_operand (operands [3], SImode))
abort();
-
/* Check to see if the test is reversed. */
if (GET_CODE (operands [1]) == NE)
{
operands [3] = tmp;
}
- /* Catch a special case where 0 or 1 is being loaded into the destination.
- Since we already have these values in the C bit we can use a special
- instruction. */
- if (zero_and_one (operands [2], operands [3]))
- {
- char * dest = reg_names [REGNO (operands [0])];
-
- sprintf (buffer, "mvfc %s, cbr", dest);
-
- /* If the true value was '0' then we need to invert the results of the move. */
- if (INTVAL (operands [2]) == 0)
- sprintf (buffer + strlen (buffer), "\n\txor3 %s, %s, #1",
- dest, dest);
-
- return buffer;
- }
-
-
+ sprintf (buffer, "mvfc %s, cbr", dest);
+
+ /* If the true value was '0' then we need to invert the results of the move. */
+ if (INTVAL (operands [2]) == 0)
+ sprintf (buffer + strlen (buffer), "\n\txor3 %s, %s, #1",
+ dest, dest);
+
return buffer;
}
#define FIXED_REGISTERS \
{ 0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 1, \
- 1, 0 }
+ 1, 1 }
/* 1 for registers not available across function calls.
[(set (match_operand:DI 0 "register_operand" "=r")
(plus:DI (match_operand:DI 1 "register_operand" "%0")
(match_operand:DI 2 "register_operand" "r")))
- (clobber (reg:CC 17))]
+ (clobber (reg:SI 17))]
""
"#"
[(set_attr "type" "multi")
}")
(define_insn "*clear_c"
- [(set (reg:CC 17)
+ [(set (reg:SI 17)
(const_int 0))
(use (match_operand:SI 0 "register_operand" "r"))]
""
[(set (match_operand:SI 0 "register_operand" "=r")
(plus:SI (match_operand:SI 1 "register_operand" "%0")
(plus:SI (match_operand:SI 2 "register_operand" "r")
- (reg:CC 17))))
- (set (reg:CC 17)
+ (reg:SI 17))))
+ (set (reg:SI 17)
(unspec [(const_int 0)] 3))]
""
"addx %0,%2"
[(set (match_operand:DI 0 "register_operand" "=r")
(minus:DI (match_operand:DI 1 "register_operand" "0")
(match_operand:DI 2 "register_operand" "r")))
- (clobber (reg:CC 17))]
+ (clobber (reg:SI 17))]
""
"#"
[(set_attr "type" "multi")
[(set (match_operand:SI 0 "register_operand" "=r")
(minus:SI (match_operand:SI 1 "register_operand" "%0")
(minus:SI (match_operand:SI 2 "register_operand" "r")
- (reg:CC 17))))
- (set (reg:CC 17)
+ (reg:SI 17))))
+ (set (reg:SI 17)
(unspec [(const_int 0)] 3))]
""
"subx %0,%2"
;; preferred.
(define_expand "cmpsi"
- [(set (reg:CC 17)
- (compare:CC (match_operand:SI 0 "register_operand" "")
+ [(set (reg:SI 17)
+ (compare:SI (match_operand:SI 0 "register_operand" "")
(match_operand:SI 1 "nonmemory_operand" "")))]
""
"
;; is quite inefficient. However, it is rarely used.
(define_insn "cmp_eqsi_insn"
- [(set (reg:CC 17)
- (eq:CC (match_operand:SI 0 "register_operand" "r,r")
+ [(set (reg:SI 17)
+ (eq:SI (match_operand:SI 0 "register_operand" "r,r")
(match_operand:SI 1 "reg_or_cmp_int16_operand" "r,P")))
(clobber (match_scratch:SI 2 "=&r,&r"))]
""
(set_attr "length" "8,8")])
(define_insn "cmp_ltsi_insn"
- [(set (reg:CC 17)
- (lt:CC (match_operand:SI 0 "register_operand" "r,r")
+ [(set (reg:SI 17)
+ (lt:SI (match_operand:SI 0 "register_operand" "r,r")
(match_operand:SI 1 "reg_or_int16_operand" "r,J")))]
""
"@
(set_attr "length" "2,4")])
(define_insn "cmp_ltusi_insn"
- [(set (reg:CC 17)
- (ltu:CC (match_operand:SI 0 "register_operand" "r,r")
+ [(set (reg:SI 17)
+ (ltu:SI (match_operand:SI 0 "register_operand" "r,r")
(match_operand:SI 1 "reg_or_uint16_operand" "r,K")))]
""
"@
]
)
-
+(define_insn "movcc_insn"
+ [(set (match_operand:SI 0 "register_operand" "=r")
+ (reg:SI 17))]
+ ""
+ "mvfc %0, cbr"
+ [(set_attr "type" "misc")
+ (set_attr "length" "2")]
+)
\f
;; Split up troublesome insns for better scheduling.