"TUNE_68040_60"
{
if (which_alternative == 0)
- return "lea 0{.|:}w,%0";
+ return MOTOROLA ? "lea 0.w,%0" : "lea 0:w,%0";
else if (which_alternative == 1)
return "clr%.l %0";
else
{
/* On the '040, 'subl an,an' takes 2 clocks while lea takes only 1 */
if (TUNE_68040_60)
- return "lea 0{.|:}w,%0";
+ return MOTOROLA ? "lea 0.w,%0" : "lea 0:w,%0";
else
return "sub%.l %0,%0";
}
return "#";
case 5:
- return "lea {(%1,%2.l)|%1@(0,%2:l)},%0";
+ return MOTOROLA ? "lea (%1,%2.l),%0" : "lea %1@(0,%2:l),%0";
case 6:
- return "lea {(%2,%1.l)|%2@(0,%1:l)},%0";
+ return MOTOROLA ? "lea (%2,%1.l),%0" : "lea %2@(0,%1:l),%0";
case 7:
- return "lea {(%c2,%1)|%1@(%c2)},%0";
+ return MOTOROLA ? "lea (%c2,%1),%0" : "lea %1@(%c2),%0";
default:
gcc_unreachable ();
}
}
if (ADDRESS_REG_P (operands[0]) && !TUNE_68040)
- return "lea {(%c2,%0)|%0@(%c2)},%0";
+ return MOTOROLA ? "lea (%c2,%0),%0" : "lea %0@(%c2),%0";
}
return "add%.w %2,%0";
})
}
}
if (ADDRESS_REG_P (operands[0]) && !TUNE_68040)
- return "lea {(%c1,%0)|%0@(%c1)},%0";
+ return MOTOROLA ? "lea (%c1,%0),%0" : "lea %0@(%c1),%0";
}
return "add%.w %1,%0";
})
}
}
if (ADDRESS_REG_P (operands[0]) && !TUNE_68040)
- return "lea {(%c1,%0)|%0@(%c1)},%0";
+ return MOTOROLA ? "lea (%c1,%0),%0" : "lea %0@(%c1),%0";
}
return "add%.w %1,%0";
})
(mult:HI (match_operand:HI 1 "general_operand" "%0")
(match_operand:HI 2 "general_src_operand" "dmSn")))]
""
- "muls{.w} %2,%0"
+{
+ return MOTOROLA ? "muls%.w %2,%0" : "muls %2,%0";
+}
[(set_attr "type" "muls_w")
(set_attr "opy" "2")])
(sign_extend:SI
(match_operand:HI 2 "nonimmediate_src_operand" "dmS"))))]
""
- "muls{.w} %2,%0"
+{
+ return MOTOROLA ? "muls%.w %2,%0" : "muls %2,%0";
+}
[(set_attr "type" "muls_w")
(set_attr "opy" "2")])
(match_operand:HI 1 "nonimmediate_operand" "%0"))
(match_operand:SI 2 "const_int_operand" "n")))]
"INTVAL (operands[2]) >= -0x8000 && INTVAL (operands[2]) <= 0x7fff"
- "muls{.w} %2,%0"
+{
+ return MOTOROLA ? "muls%.w %2,%0" : "muls %2,%0";
+}
[(set_attr "type" "muls_w")
(set_attr "opy" "2")])
(zero_extend:SI
(match_operand:HI 2 "nonimmediate_src_operand" "dmS"))))]
""
- "mulu{.w} %2,%0"
+{
+ return MOTOROLA ? "mulu%.w %2,%0" : "mulu %2,%0";
+}
[(set_attr "type" "mulu_w")
(set_attr "opy" "2")])
(match_operand:HI 1 "nonimmediate_operand" "%0"))
(match_operand:SI 2 "const_int_operand" "n")))]
"INTVAL (operands[2]) >= 0 && INTVAL (operands[2]) <= 0xffff"
- "mulu{.w} %2,%0"
+{
+ return MOTOROLA ? "mulu%.w %2,%0" : "mulu %2,%0";
+}
[(set_attr "type" "mulu_w")
(set_attr "opy" "2")])
(mod:HI (match_dup 1) (match_dup 2)))]
"!TARGET_COLDFIRE || TARGET_CF_HWDIV"
{
- output_asm_insn ("ext%.l %0\;divs{.w} %2,%0", operands);
+ output_asm_insn (MOTOROLA ?
+ "ext%.l %0\;divs%.w %2,%0" :
+ "extl %0\;divs %2,%0",
+ operands);
if (!find_reg_note(insn, REG_UNUSED, operands[3]))
{
CC_STATUS_INIT;
"!TARGET_COLDFIRE || TARGET_CF_HWDIV"
{
if (ISA_HAS_MVS_MVZ)
- output_asm_insn ("mvz%.w %0,%0\;divu{.w} %2,%0", operands);
+ output_asm_insn (MOTOROLA ?
+ "mvz%.w %0,%0\;divu%.w %2,%0" :
+ "mvz%.w %0,%0\;divu %2,%0",
+ operands);
else
- output_asm_insn ("and%.l #0xFFFF,%0\;divu{.w} %2,%0", operands);
+ output_asm_insn (MOTOROLA ?
+ "and%.l #0xFFFF,%0\;divu%.w %2,%0" :
+ "and%.l #0xFFFF,%0\;divu %2,%0",
+ operands);
if (!find_reg_note(insn, REG_UNUSED, operands[3]))
{
[(set (pc) (match_operand:SI 0 "register_operand" "a"))
(use (label_ref (match_operand 1 "" "")))]
""
- "jmp {(%0)|%0@}"
+{
+ return MOTOROLA ? "jmp (%0)" : "jmp %0@";
+}
[(set_attr "type" "bra")])
;; Jump to variable address from dispatch table of relative addresses.
if (TARGET_COLDFIRE)
{
if (ADDRESS_REG_P (operands[0]))
- return "jmp {(2,pc,%0.l)|pc@(2,%0:l)}";
+ return MOTOROLA ? "jmp (2,pc,%0.l)" : "jmp pc@(2,%0:l)";
+ else if (MOTOROLA)
+ return "ext%.l %0\;jmp (2,pc,%0.l)";
else
- return "ext%.l %0\;jmp {(2,pc,%0.l)|pc@(2,%0:l)}";
+ return "extl %0\;jmp pc@(2,%0:l)";
}
else
- return "jmp {(2,pc,%0.w)|pc@(2,%0:w)}";
+ return MOTOROLA ? "jmp (2,pc,%0.w)" : "jmp pc@(2,%0:w)";
#endif
})
"TARGET_68020 || INTVAL (operands[1]) >= -0x8004"
{
operands[1] = GEN_INT (INTVAL (operands[1]) + 4);
- if (INTVAL (operands[1]) >= -0x8000)
- return "link{.w} %0,%1";
+ if (!MOTOROLA)
+ return "link %0,%1";
+ else if (INTVAL (operands[1]) >= -0x8000)
+ return "link.w %0,%1";
else
- return "link{.l} %0,%1";
+ return "link.l %0,%1";
})
(define_expand "unlink"
if (TARGET_ID_SHARED_LIBRARY)
{
operands[1] = gen_rtx_REG (Pmode, PIC_REG);
- return "move%.l {%?(%1)|%1@(%?)},%0";
+ return MOTOROLA ? "move.l %?(%1),%0" : "movel %1@(%?), %0";
}
else if (MOTOROLA)
{
""
"#"
[(set_attr "type" "ib")])
+
+(include "cf.md")