aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-08-25 17:24:37 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-08-25 17:24:37 -0700
commit6dd53648e913ea6ad55131ed0c8cc2709e9a3316 (patch)
tree16040afedbe7456a6d5be99edc239c4efcbd88c1 /gcc/expr.c
parent9950712b1dd1615314417b98f8a26cfe5c6b2f32 (diff)
downloadgcc-6dd53648e913ea6ad55131ed0c8cc2709e9a3316.zip
gcc-6dd53648e913ea6ad55131ed0c8cc2709e9a3316.tar.gz
gcc-6dd53648e913ea6ad55131ed0c8cc2709e9a3316.tar.bz2
target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
* target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New. * target.h (struct gcc_target): Add scalar_mode_supported_p. * targhooks.c (default_scalar_mode_supported_p): New. * targhooks.h (default_scalar_mode_supported_p): Declare. * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document. * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p before attempting to create types. Tidy. * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p. * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New. (TARGET_SCALAR_MODE_SUPPORTED_P): New. From-SVN: r86593
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index b989864..6811abe 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -8799,7 +8799,7 @@ vector_mode_valid_p (enum machine_mode mode)
/* If we have support for the inner mode, we can safely emulate it.
We may not have V2DI, but me can emulate with a pair of DIs. */
- return mov_optab->handlers[innermode].insn_code != CODE_FOR_nothing;
+ return targetm.scalar_mode_supported_p (innermode);
}
/* Return a CONST_VECTOR rtx for a VECTOR_CST tree. */