diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-06-28 16:27:31 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-06-28 16:27:31 +0000 |
commit | bd292a97bad8bfa621d0c3071f8e586b05feb477 (patch) | |
tree | 686d15155c06563905417fcc440d64c72a9e22fd /gnu/egcs | |
parent | 3ec4d219005265c741555806fbee77bc55770135 (diff) |
Bug-fix for -fpic m68k trouble.
Diffstat (limited to 'gnu/egcs')
-rw-r--r-- | gnu/egcs/gcc/config/m68k/m68k.h | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/gnu/egcs/gcc/config/m68k/m68k.h b/gnu/egcs/gcc/config/m68k/m68k.h index 268b639d8b7..8152cddb8b5 100644 --- a/gnu/egcs/gcc/config/m68k/m68k.h +++ b/gnu/egcs/gcc/config/m68k/m68k.h @@ -772,23 +772,19 @@ extern enum reg_class regno_reg_class[]; in some cases it is preferable to use a more restrictive class. On the 68000 series, use a data reg if possible when the value is a constant in the range where moveq could be used - and we ensure that QImodes are reloaded into data regs. - Also, if a floating constant needs reloading, put it in memory. - Don't do this for !G constants, since all patterns in the md file - expect them to be loaded into a register via fpmovecr. See above. */ - -#define PREFERRED_RELOAD_CLASS(X,CLASS) \ - ((GET_CODE (X) == CONST_INT \ - && (unsigned) (INTVAL (X) + 0x80) < 0x100 \ - && (CLASS) != ADDR_REGS) \ - ? DATA_REGS \ - : (GET_MODE (X) == QImode && (CLASS) != ADDR_REGS) \ - ? DATA_REGS \ - : (GET_CODE (X) == CONST_DOUBLE \ - && GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT) \ - ? (! CONST_DOUBLE_OK_FOR_LETTER_P (X, 'G') \ - && (CLASS == FP_REGS || CLASS == DATA_OR_FP_REGS) \ - ? FP_REGS : NO_REGS) \ + and we ensure that QImodes are reloaded into data regs. */ + +#define PREFERRED_RELOAD_CLASS(X,CLASS) \ + ((GET_CODE (X) == CONST_INT \ + && (unsigned) (INTVAL (X) + 0x80) < 0x100 \ + && (CLASS) != ADDR_REGS) \ + ? DATA_REGS \ + : (GET_MODE (X) == QImode && (CLASS) != ADDR_REGS) \ + ? DATA_REGS \ + : (GET_CODE (X) == CONST_DOUBLE \ + && GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT) \ + ? (TARGET_68881 && (CLASS == FP_REGS || CLASS == DATA_OR_FP_REGS) \ + ? FP_REGS : NO_REGS) \ : (CLASS)) /* Force QImode output reloads from subregs to be allocated to data regs, |