From bf4563cbf170034779fe9a493eb0c752372fc6f7 Mon Sep 17 00:00:00 2001 From: Gunther Nikl Date: Wed, 20 Aug 2003 22:15:57 +0000 Subject: [PATCH] m68k.md (anonymous define_insn): remove obsolete code selected by FSGLMUL_USE_S and FSGLDIV_USE_S * config/m68k/m68k.md (anonymous define_insn): remove obsolete code selected by FSGLMUL_USE_S and FSGLDIV_USE_S * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check * config/m68k/m68k.md (anonymous define_insn): Likewise * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete code selected by NO_ASM_FMOVECR From-SVN: r70622 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/m68k/m68k.c | 6 ------ gcc/config/m68k/m68k.md | 21 --------------------- 3 files changed, 10 insertions(+), 27 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0438374b5a3c..a93e264a6dc2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2003-08-20 Gunther Nikl + + * config/m68k/m68k.md (anonymous define_insn): remove obsolete code + selected by FSGLMUL_USE_S and FSGLDIV_USE_S + * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check + * config/m68k/m68k.md (anonymous define_insn): Likewise + * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check + * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete + code selected by NO_ASM_FMOVECR + 2003-08-20 Gunther Nikl * config/m68k/m68k.c (output_move_const_into_data_reg, diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 79f375274532..40166e3e3494 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -1705,7 +1705,6 @@ output_move_himode (operands) } else if (CONSTANT_P (operands[1])) return "move%.l %1,%0"; -#ifndef SGS_NO_LI /* Recognize the insn before a tablejump, one that refers to a table of offsets. Such an insn will need to refer to a label on the insn. So output one. Use the label-number @@ -1736,7 +1735,6 @@ output_move_himode (operands) #endif /* SGS_SWITCH_TABLES */ #endif /* SGS_SWITCH_TABLES or not MOTOROLA */ } -#endif /* SGS_NO_LI */ return "move%.w %1,%0"; } @@ -2513,10 +2511,6 @@ standard_68881_constant_p (x) REAL_VALUE_TYPE r; int i; -#ifdef NO_ASM_FMOVECR - return 0; -#endif - /* fmovecr must be emulated on the 68040 and 68060, so it shouldn't be used at all on those chips. */ if (TARGET_68040 || TARGET_68060) diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index bc22ec1d0b0f..703a8954aa93 100644 --- a/gcc/config/m68k/m68k.md +++ b/gcc/config/m68k/m68k.md @@ -199,12 +199,7 @@ "" "* { -#ifdef ISI_OV - /* ISI's assembler fails to handle tstl a0. */ - if (! ADDRESS_REG_P (operands[0])) -#else if (TARGET_68020 || TARGET_5200 || ! ADDRESS_REG_P (operands[0])) -#endif return \"tst%.l %0\"; /* If you think that the 68020 does not support tstl a0, reread page B-167 of the 68020 manual more carefully. */ @@ -3018,17 +3013,10 @@ "TARGET_68881" "* { -#ifdef FSGLMUL_USE_S - if (REG_P (operands[2]) && ! DATA_REG_P (operands[2])) - return (TARGET_68040_ONLY - ? \"fsmul%.s %2,%0\" - : \"fsglmul%.s %2,%0\"); -#else if (REG_P (operands[2]) && ! DATA_REG_P (operands[2])) return (TARGET_68040_ONLY ? \"fsmul%.x %2,%0\" : \"fsglmul%.x %2,%0\"); -#endif return (TARGET_68040_ONLY ? \"fsmul%.s %f2,%0\" : \"fsglmul%.s %f2,%0\"); @@ -3126,17 +3114,10 @@ "TARGET_68881" "* { -#ifdef FSGLDIV_USE_S - if (REG_P (operands[2]) && ! DATA_REG_P (operands[2])) - return (TARGET_68040_ONLY - ? \"fsdiv%.s %2,%0\" - : \"fsgldiv%.s %2,%0\"); -#else if (REG_P (operands[2]) && ! DATA_REG_P (operands[2])) return (TARGET_68040_ONLY ? \"fsdiv%.x %2,%0\" : \"fsgldiv%.x %2,%0\"); -#endif return (TARGET_68040_ONLY ? \"fsdiv%.s %f2,%0\" : \"fsgldiv%.s %f2,%0\"); @@ -6997,7 +6978,6 @@ "" "* { -#ifndef SGS_NO_LI /* Recognize an insn that refers to a table of offsets. Such an insn will need to refer to a label on the insn. So output one. Use the label-number of the table of offsets to generate this label. This code, @@ -7026,7 +7006,6 @@ #endif /* SGS_SWITCH_TABLES */ #endif /* SGS_SWITCH_TABLES or not MOTOROLA */ } -#endif /* SGS_NO_LI */ return \"lea %a1,%0\"; }") -- 2.43.5