From 6c13d91005127b6c1d09a7cdfa471bca08faafb9 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 24 Jun 1997 19:26:15 -0700 Subject: [PATCH] (LIMIT_RELOAD_CLASS): Define. From-SVN: r14301 --- gcc/config/m68k/m68k.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h index 07ce8724209..c5849adcb2c 100644 --- a/gcc/config/m68k/m68k.h +++ b/gcc/config/m68k/m68k.h @@ -778,6 +778,16 @@ extern enum reg_class regno_reg_class[]; ? FP_REGS : NO_REGS) \ : (CLASS)) +/* Force QImode output reloads from subregs to be allocated to data regs, + since QImode stores from address regs are not supported. We make the + assumption that if the class is not ADDR_REGS, then it must be a superset + of DATA_REGS. */ + +#define LIMIT_RELOAD_CLASS(MODE, CLASS) \ + (((MODE) == QImode && (CLASS) != ADDR_REGS) \ + ? DATA_REGS \ + : (CLASS)) + /* Return the maximum number of consecutive registers needed to represent mode MODE in a register of class CLASS. */ /* On the 68000, this is the size of MODE in words, -- 2.30.2