aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sparc/constraints.md
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2010-09-22 08:31:14 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-09-22 08:31:14 +0000
commit77167b6f44e2f2156a396af44701329c168c3ab1 (patch)
tree5847147401cdcf164f4a99f9f5d1ce7857460f3a /gcc/config/sparc/constraints.md
parent50842acbc6cbe8befb9a79c57f2424b87f1d81b5 (diff)
downloadgcc-77167b6f44e2f2156a396af44701329c168c3ab1.zip
gcc-77167b6f44e2f2156a396af44701329c168c3ab1.tar.gz
gcc-77167b6f44e2f2156a396af44701329c168c3ab1.tar.bz2
re PR target/35664 (unable to find a register to spill in class 'FP_REGS')
PR target/35664 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU. ('f'): Likewise. From-SVN: r164512
Diffstat (limited to 'gcc/config/sparc/constraints.md')
-rw-r--r--gcc/config/sparc/constraints.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/sparc/constraints.md b/gcc/config/sparc/constraints.md
index ee0fbbd..73c4087 100644
--- a/gcc/config/sparc/constraints.md
+++ b/gcc/config/sparc/constraints.md
@@ -35,10 +35,10 @@
;; In the non-V9 case, coerce V9 'e' class to 'f', so we can use 'e' in the
;; MD file for V8 and V9.
-(define_register_constraint "e" "TARGET_V9 ? EXTRA_FP_REGS : FP_REGS"
+(define_register_constraint "e" "(TARGET_FPU ? (TARGET_V9 ? EXTRA_FP_REGS : FP_REGS) : NO_REGS)"
"Any floating-point register")
-(define_register_constraint "f" "FP_REGS"
+(define_register_constraint "f" "(TARGET_FPU ? FP_REGS : NO_REGS)"
"Lower floating-point register")
(define_register_constraint "h" "(TARGET_V9 && TARGET_V8PLUS ? I64_REGS : NO_REGS)"