From 7ea555a4fc8b9545f7ccd71e8a8e8703c22f5056 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 1 Sep 1993 18:41:53 -0400 Subject: [PATCH] (SECONDARY_MEMORY_NEEDED): New macro. From-SVN: r5242 --- gcc/config/rs6000/rs6000.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index f50c6b3a160..e4706fccaec 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -558,6 +558,12 @@ enum reg_class { NO_REGS, BASE_REGS, GENERAL_REGS, FLOAT_REGS, #define SECONDARY_RELOAD_CLASS(CLASS,MODE,IN) \ secondary_reload_class (CLASS, MODE, IN) +/* If we are copying between FP registers and anything else, we need a memory + location. */ + +#define SECONDARY_MEMORY_NEEDED(CLASS1,CLASS2,MODE) \ + ((CLASS1) != (CLASS2) && ((CLASS1) == FLOAT_REGS || (CLASS2) == FLOAT_REGS)) + /* Return the maximum number of consecutive registers needed to represent mode MODE in a register of class CLASS. -- 2.30.2