[(match_dup 4)
(set (match_operand 0 "register_operand" "t")
(if_then_else:DF (match_operand 1 "comparison_operator" "")
- (match_operand:DF 2 "register_operand" "f")
- (match_operand:DF 3 "register_operand" "f")))]
+ (match_operand:DF 2 "general_operand" "")
+ (match_operand:DF 3 "general_operand" "")))]
"TARGET_CMOVE"
"
{
[(match_dup 4)
(set (match_operand 0 "register_operand" "t")
(if_then_else:XF (match_operand 1 "comparison_operator" "")
- (match_operand:XF 2 "register_operand" "f")
- (match_operand:XF 3 "register_operand" "f")))]
+ (match_operand:XF 2 "general_operand" "")
+ (match_operand:XF 3 "general_operand" "")))]
"TARGET_CMOVE"
"
{
{
xops[0] = operands[0];
xops[1] = operands[2];
- output_move_const_single (xops);
+ output_asm_insn (singlemove_string (xops), xops);
}
output_asm_insn (\"j%C1 %l4\", operands);
if (STACK_REG_P (operands[3]) || GET_CODE (operands[0]) == MEM)
output_asm_insn (AS1 (fld%z3,%y3), operands);
else
{
+ xops[0] = operands[0];
xops[1] = operands[3];
- SET_SRC (PATTERN (insn)) = XEXP (SET_SRC (PATTERN (insn)), 2);
- output_move_const_single (xops);
+ output_asm_insn (singlemove_string (xops), xops);
}
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"L\", CODE_LABEL_NUMBER (operands[4]));
}
{
xops[0] = operands[0];
xops[1] = operands[2];
- output_move_const_single (xops);
+ output_asm_insn (singlemove_string (xops), xops);
}
output_asm_insn (\"j%C1 %l4\", operands);
if (STACK_REG_P (operands[3]) || GET_CODE (operands[0]) == MEM)
output_asm_insn (AS1 (fld%z3,%y3), operands);
else
{
+ xops[0] = operands[0];
xops[1] = operands[3];
- SET_SRC (PATTERN (insn)) = XEXP (SET_SRC (PATTERN (insn)), 2);
- output_move_const_single (xops);
+ output_asm_insn (singlemove_string (xops), xops);
}
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"L\", CODE_LABEL_NUMBER (operands[4]));
}
}")
(define_insn "movxfcc_1"
- [(set (match_operand:XF 0 "register_operand" "=t,t")
+ [(set (match_operand:XF 0 "register_operand" "=t,=t,f,fFm")
(if_then_else:XF (match_operator 1 "comparison_operator"
[(cc0) (const_int 0)])
- (match_operand:XF 2 "register_operand" "0,f")
- (match_operand:XF 3 "register_operand" "f,0")))]
+ (match_operand:XF 2 "register_operand" "0,f,f,fFm")
+ (match_operand:XF 3 "register_operand" "f,0,f,fFm")))]
"TARGET_CMOVE"
"*
{
/* r <- cond ? r : arg */
output_asm_insn (AS2 (fcmov%F1,%2,%0), operands);
}
+ else if (which_alternative == 2)
+ {
+ /* r <- cond ? r : arg */
+ output_asm_insn (AS2 (fcmov%F1,%2,%0), operands);
+ output_asm_insn (AS2 (fcmov%f1,%3,%0), operands);
+ }
+ else if (which_alternative == 3)
+ {
+ rtx xops[2];
+
+ /* r <- cond ? arg1 : arg2 */
+ operands[4] = gen_label_rtx ();
+
+ if (STACK_REG_P (operands[2]) || GET_CODE (operands[2]) == MEM)
+ output_asm_insn (AS1 (fld%z2,%y2), operands);
+ else
+ {
+ xops[0] = operands[0];
+ xops[1] = operands[2];
+ output_asm_insn (singlemove_string (xops), xops);
+ }
+ output_asm_insn (\"j%C1 %l4\", operands);
+ if (STACK_REG_P (operands[3]) || GET_CODE (operands[0]) == MEM)
+ output_asm_insn (AS1 (fld%z3,%y3), operands);
+ else
+ {
+ xops[0] = operands[0];
+ xops[1] = operands[3];
+ output_asm_insn (singlemove_string (xops), xops);
+ }
+ ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, \"L\", CODE_LABEL_NUMBER (operands[4]));
+}
RET;
}")