aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gnu.org>1992-09-24 19:37:34 +0000
committerTorbjorn Granlund <tege@gnu.org>1992-09-24 19:37:34 +0000
commitf4f22302c4f5a8b25426e9af6bb7c592ac063916 (patch)
tree7fed74206bc1addf119dfd1076bd181b9ac3e10d /gcc
parentfa5e5c1e7a443c1270999f1bc8f164b025df3e17 (diff)
downloadgcc-f4f22302c4f5a8b25426e9af6bb7c592ac063916.zip
gcc-f4f22302c4f5a8b25426e9af6bb7c592ac063916.tar.gz
gcc-f4f22302c4f5a8b25426e9af6bb7c592ac063916.tar.bz2
(REGISTER_MOVE_COST): Fix typo. Use `||' instead of `|'.
(REG_CLASS_FROM_LETTER): Don't handle 'r' constraints here. From-SVN: r2234
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/pa/pa.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 818076c..25f8fe5 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -507,12 +507,11 @@ enum reg_class { NO_REGS, R1_REGS, GENERAL_REGS, FP_REGS, GENERAL_OR_FP_REGS,
/* Get reg_class from a letter such as appears in the machine description. */
#define REG_CLASS_FROM_LETTER(C) \
- ((C) == 'r' ? GENERAL_REGS : \
- ((C) == 'f' ? (!TARGET_SNAKE ? FP_REGS : NO_REGS) : \
- ((C) == 'x' ? (TARGET_SNAKE ? SNAKE_FP_REGS : NO_REGS) : \
- ((C) == 'y' ? (TARGET_SNAKE ? HI_SNAKE_FP_REGS : NO_REGS) :\
- ((C) == 'q' ? SHIFT_REGS : \
- ((C) == 'a' ? R1_REGS : NO_REGS))))))
+ ((C) == 'f' ? (!TARGET_SNAKE ? FP_REGS : NO_REGS) : \
+ ((C) == 'x' ? (TARGET_SNAKE ? SNAKE_FP_REGS : NO_REGS) : \
+ ((C) == 'y' ? (TARGET_SNAKE ? HI_SNAKE_FP_REGS : NO_REGS) : \
+ ((C) == 'q' ? SHIFT_REGS : \
+ ((C) == 'a' ? R1_REGS : NO_REGS)))))
/* The letters I, J, K, L and M in a register constraint string
can be used to stand for particular ranges of immediate operands.
@@ -1352,8 +1351,8 @@ while (0)
#define REGISTER_MOVE_COST(CLASS1, CLASS2) \
((((CLASS1 == FP_REGS || CLASS1 == SNAKE_FP_REGS \
|| CLASS1 == HI_SNAKE_FP_REGS) \
- && (CLASS2 == R1_REGS | CLASS2 == GENERAL_REGS)) \
- || ((CLASS2 == R1_REGS | CLASS1 == GENERAL_REGS) \
+ && (CLASS2 == R1_REGS || CLASS2 == GENERAL_REGS)) \
+ || ((CLASS1 == R1_REGS || CLASS1 == GENERAL_REGS) \
&& (CLASS2 == FP_REGS || CLASS2 == SNAKE_FP_REGS \
|| CLASS2 == HI_SNAKE_FP_REGS))) ? 6 : 2)