Commit 88ed5ef5 by Steve Ellcey Committed by Steve Ellcey

ia64.c (ia64_scalar_mode_supported_p): New.

	* config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
	(TARGET_SCALAR_MODE_SUPPORTED_P): New.

From-SVN: r87448
parent a5bfe141
2004-09-13 Steve Ellcey <sje@cup.hp.com>
* config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
(TARGET_SCALAR_MODE_SUPPORTED_P): New.
2004-09-13 Richard Henderson <rth@redhat.com>
PR 17436
......
......@@ -276,6 +276,7 @@ static tree ia64_handle_model_attribute (tree *, tree, tree, int, bool *);
static void ia64_encode_section_info (tree, rtx, int);
static rtx ia64_struct_value_rtx (tree, int);
static tree ia64_gimplify_va_arg (tree, tree, tree *, tree *);
static bool ia64_scalar_mode_supported_p (enum machine_mode mode);
/* Table of valid machine attributes. */
......@@ -416,6 +417,9 @@ static const struct attribute_spec ia64_attribute_table[] =
#undef TARGET_UNWIND_EMIT
#define TARGET_UNWIND_EMIT process_for_unwind_directive
#undef TARGET_SCALAR_MODE_SUPPORTED_P
#define TARGET_SCALAR_MODE_SUPPORTED_P ia64_scalar_mode_supported_p
struct gcc_target targetm = TARGET_INITIALIZER;
typedef enum
......@@ -8478,4 +8482,29 @@ ia64_struct_value_rtx (tree fntype,
return gen_rtx_REG (Pmode, GR_REG (8));
}
static bool
ia64_scalar_mode_supported_p (enum machine_mode mode)
{
switch (mode)
{
case QImode:
case HImode:
case SImode:
case DImode:
case TImode:
return true;
case SFmode:
case DFmode:
case XFmode:
return true;
case TFmode:
return TARGET_HPUX;
default:
return false;
}
}
#include "gt-ia64.h"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment