summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/predicates.md
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-10 05:46:45 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-10 05:46:45 +0000
commit8b5ec81a2b0bdcaa1a607ebec8c44558e45cf189 (patch)
tree06237c05b3410762367ab5ede70562a518eb0ebb /gcc/config/rs6000/predicates.md
parente0ccfb98c0d5f9ddf69db8092b1bbdc7eb4557e3 (diff)
downloadgcc-8b5ec81a2b0bdcaa1a607ebec8c44558e45cf189.tar.gz
* config/rs6000/predicates.md (easy_fp_constant): Discount decimal
float modes. * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New. (TARGET_SCALAR_MODE_SUPPORTED_P): Define. (USE_FP_FOR_ARG): Reject decimal float modes. (function_arg_advance): Likewise. (output_toc): Handle emitting TDmode, DDmode and SDmode constants. (rs6000_handle_altivec_attribute): Do not permit decimal floating point types in AltiVec vectors. (rs6000_function_value): Use GP_ARG_RETURN for decimal floats. (rs6000_libcall_value): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109533 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/predicates.md')
-rw-r--r--gcc/config/rs6000/predicates.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md
index 7baa401aedc..de31fe2e54f 100644
--- a/gcc/config/rs6000/predicates.md
+++ b/gcc/config/rs6000/predicates.md
@@ -1,5 +1,5 @@
;; Predicate definitions for POWER and PowerPC.
-;; Copyright (C) 2005 Free Software Foundation, Inc.
+;; Copyright (C) 2005, 2006 Free Software Foundation, Inc.
;;
;; This file is part of GCC.
;;
@@ -195,6 +195,9 @@
&& mode != DImode)
return 1;
+ if (DECIMAL_FLOAT_MODE_P (mode))
+ return 0;
+
/* If we are using V.4 style PIC, consider all constants to be hard. */
if (flag_pic && DEFAULT_ABI == ABI_V4)
return 0;