diff options
author | Julian Brown <julian@codesourcery.com> | 2007-01-12 09:34:17 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-01-12 09:34:17 +0000 |
commit | b101567e0482fe4e3c55581c01353e0694d007d5 (patch) | |
tree | 38e056f31da22f463a61181994eeca53824cfced /gcc | |
parent | 900ec02dfd7eef18598eee256e8ec9dc8a36a0da (diff) | |
download | gcc-b101567e0482fe4e3c55581c01353e0694d007d5.zip gcc-b101567e0482fe4e3c55581c01353e0694d007d5.tar.gz gcc-b101567e0482fe4e3c55581c01353e0694d007d5.tar.bz2 |
200x-xx-xx Julian Brown <julian@codesourcery.com>
gcc/
200x-xx-xx Julian Brown <julian@codesourcery.com>
* config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
(TARGET_68040_ONLY): Rename to...
(TARGET_68040): ...this.
* config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
* config/m68k/m68k.md: Likewise.
From-SVN: r120714
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.c | 4 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.h | 6 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.md | 22 |
4 files changed, 24 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6f6508e..2c0be89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,12 @@ 2007-01-12 Julian Brown <julian@codesourcery.com> + + * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY. + (TARGET_68040_ONLY): Rename to... + (TARGET_68040): ...this. + * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY. + * config/m68k/m68k.md: Likewise. + +2007-01-12 Julian Brown <julian@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Richard Sandiford <richard@codesourcery.com> diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 74c439d..2941757 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -3086,12 +3086,12 @@ print_operand (FILE *file, rtx op, int letter) asm_fprintf (file, "%Rfpcr"); else if (letter == '$') { - if (TARGET_68040_ONLY) + if (TARGET_68040) fprintf (file, "s"); } else if (letter == '&') { - if (TARGET_68040_ONLY) + if (TARGET_68040) fprintf (file, "d"); } else if (letter == '/') diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h index 7ef17ba..aa70a7f 100644 --- a/gcc/config/m68k/m68k.h +++ b/gcc/config/m68k/m68k.h @@ -67,7 +67,7 @@ Boston, MA 02110-1301, USA. */ { \ builtin_define ("__m68k__"); \ builtin_define_std ("mc68000"); \ - if (TARGET_68040_ONLY) \ + if (TARGET_68040) \ { \ if (TUNE_68060) \ builtin_define_std ("mc68060"); \ @@ -182,7 +182,7 @@ Boston, MA 02110-1301, USA. */ #define TARGET_68010 ((m68k_cpu_flags & FL_ISA_68010) != 0) #define TARGET_68020 ((m68k_cpu_flags & FL_ISA_68020) != 0) -#define TARGET_68040_ONLY ((m68k_cpu_flags & FL_ISA_68040) != 0) +#define TARGET_68040 ((m68k_cpu_flags & FL_ISA_68040) != 0) #define TARGET_COLDFIRE ((m68k_cpu_flags & FL_COLDFIRE) != 0) #define TARGET_COLDFIRE_FPU (m68k_fpu == FPUTYPE_COLDFIRE) #define TARGET_68881 (m68k_fpu == FPUTYPE_68881) @@ -220,7 +220,7 @@ Boston, MA 02110-1301, USA. */ /* Set the value of FLT_EVAL_METHOD in float.h. When using 68040 fp instructions, we get proper intermediate rounding, otherwise we get extended precision results. */ -#define TARGET_FLT_EVAL_METHOD ((TARGET_68040_ONLY || ! TARGET_68881) ? 0 : 2) +#define TARGET_FLT_EVAL_METHOD ((TARGET_68040 || ! TARGET_68881) ? 0 : 2) #define BITS_BIG_ENDIAN 1 #define BYTES_BIG_ENDIAN 1 diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index 41ba5e0..429f433 100644 --- a/gcc/config/m68k/m68k.md +++ b/gcc/config/m68k/m68k.md @@ -1659,7 +1659,7 @@ [(set (match_operand:SF 0 "nonimmediate_operand" "=f") (float_truncate:SF (match_operand:DF 1 "general_operand" "fmG")))] - "TARGET_68881 && TARGET_68040_ONLY" + "TARGET_68881 && TARGET_68040" { if (FP_REG_P (operands[1])) return "f%$move%.x %1,%0"; @@ -2834,7 +2834,7 @@ (match_operand:FP 1 "general_operand" "0")))] "TARGET_68881" { - return TARGET_68040_ONLY + return TARGET_68040 ? "f<FP:round>mul%.l %2,%0" : "f<FP:round_mul>mul%.l %2,%0"; }) @@ -2845,7 +2845,7 @@ (match_operand:FP 1 "general_operand" "0")))] "TARGET_68881" { - return TARGET_68040_ONLY + return TARGET_68040 ? "f<FP:round>mul%.w %2,%0" : "f<FP:round_mul>mul%.w %2,%0"; }) @@ -2856,7 +2856,7 @@ (match_operand:FP 1 "general_operand" "0")))] "TARGET_68881" { - return TARGET_68040_ONLY + return TARGET_68040 ? "f<FP:round>mul%.b %2,%0" : "f<FP:round_mul>mul%.b %2,%0"; }) @@ -2886,10 +2886,10 @@ "TARGET_68881" { if (FP_REG_P (operands[2])) - return (TARGET_68040_ONLY + return (TARGET_68040 ? "fsmul%.x %2,%0" : "fsglmul%.x %2,%0"); - return (TARGET_68040_ONLY + return (TARGET_68040 ? "fsmul%.s %f2,%0" : "fsglmul%.s %f2,%0"); }) @@ -2929,7 +2929,7 @@ (float:FP (match_operand:SI 2 "general_operand" "dmi"))))] "TARGET_68881" { - return TARGET_68040_ONLY + return TARGET_68040 ? "f<FP:round>div%.l %2,%0" : "f<FP:round_mul>div%.l %2,%0"; }) @@ -2940,7 +2940,7 @@ (float:FP (match_operand:HI 2 "general_operand" "dmn"))))] "TARGET_68881" { - return TARGET_68040_ONLY + return TARGET_68040 ? "f<FP:round>div%.w %2,%0" : "f<FP:round_mul>div%.w %2,%0"; }) @@ -2951,7 +2951,7 @@ (float:FP (match_operand:QI 2 "general_operand" "dmn"))))] "TARGET_68881" { - return TARGET_68040_ONLY + return TARGET_68040 ? "f<FP:round>div%.b %2,%0" : "f<FP:round_mul>div%.b %2,%0"; }) @@ -2963,10 +2963,10 @@ "TARGET_68881" { if (FP_REG_P (operands[2])) - return (TARGET_68040_ONLY + return (TARGET_68040 ? "f<FP:round>div%.x %2,%0" : "f<FP:round_mul>div%.x %2,%0"); - return (TARGET_68040_ONLY + return (TARGET_68040 ? "f<FP:round>div%.<FP:prec> %f2,%0" : "f<FP:round_mul>div%.<FP:prec> %f2,%0"); }) |