From 6d545b717cc72d1394ad5f9c289ab2617a7767d3 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 7 Sep 1994 19:29:25 -0400 Subject: (REGISTER_MOVE_COST): Moving between special registers is expensive. From-SVN: r8035 --- gcc/config/rs6000/rs6000.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc') diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index c7cd68a..ce930cd 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -478,6 +478,12 @@ extern char *rs6000_cpu_string; ((CLASS1) == FLOAT_REGS && (CLASS2) == FLOAT_REGS ? 2 \ : (CLASS1) == FLOAT_REGS && (CLASS2) != FLOAT_REGS ? 10 \ : (CLASS1) != FLOAT_REGS && (CLASS2) == FLOAT_REGS ? 10 \ + : (((CLASS1) == SPECIAL_REGS \ + || (CLASS1) == MQ_REGS || (CLASS1) == LINK_REGS \ + || (CLASS1) == CTR_REGS || (CLASS1) == BASE_REGS) \ + && ((CLASS2) == SPECIAL_REGS \ + || (CLASS2) == MQ_REGS || (CLASS2) == LINK_REGS \ + || (CLASS2) == CTR_REGS || (CLASS2) == BASE_REGS)) ? 10 \ : 2) /* A C expressions returning the cost of moving data of MODE from a register to -- cgit v1.1