+2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
+
+ * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
+ between Coldfire and regular m68k.
+ * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
+
2019-11-27 Richard Biener <rguenther@suse.de>
* target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
if (op1 == CONST0_RTX (GET_MODE (op0)))
{
if (FP_REG_P (op0))
- output_asm_insn ("ftst%.x %0", ops);
+ {
+ if (TARGET_COLDFIRE_FPU)
+ output_asm_insn ("ftst%.d %0", ops);
+ else
+ output_asm_insn ("ftst%.x %0", ops);
+ }
else
output_asm_insn (("ftst%." + prec + " %0").c_str (), ops);
return code;
switch (which_alternative)
{
case 0:
- output_asm_insn ("fcmp%.x %1,%0", ops);
+ if (TARGET_COLDFIRE_FPU)
+ output_asm_insn ("fcmp%.d %1,%0", ops);
+ else
+ output_asm_insn ("fcmp%.x %1,%0", ops);
break;
case 1:
output_asm_insn (("fcmp%." + prec + " %f1,%0").c_str (), ops);
;; needs to be reloaded.
(define_mode_attr scc0_cf_constraints [(QI "=d") (HI "=d") (SI "=d,d,d")])
-(define_mode_attr cmp1_cf_constraints [(QI "dm") (HI "dm") (SI "mrKs,r,rm")])
+(define_mode_attr cmp1_cf_constraints [(QI "dm") (HI "dm") (SI "mr,r,rm")])
(define_mode_attr cmp2_cf_constraints [(QI "C0") (HI "C0") (SI "r,mrKs,C0")])
(define_mode_attr cmp2_cf_predicate [(QI "const0_operand") (HI "const0_operand") (SI "general_operand")])