c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
2003-06-13 Aldy Hernandez <aldyh@redhat.com> * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro. * simplify-rtx.c (simplify_subreg): Same. * emit-rtl.c (gen_lowpart_common): Same. From-SVN: r67911
This commit is contained in:
parent
e15bb5c692
commit
9f629a2191
4 changed files with 11 additions and 8 deletions
|
@ -1,3 +1,11 @@
|
|||
2003-06-13 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
|
||||
|
||||
* simplify-rtx.c (simplify_subreg): Same.
|
||||
|
||||
* emit-rtl.c (gen_lowpart_common): Same.
|
||||
|
||||
2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* builtins.c: Fix comment typos.
|
||||
|
|
|
@ -5215,9 +5215,7 @@ handle_mode_attribute (node, name, args, flags, no_add_attrs)
|
|||
{
|
||||
/* If this is a vector, make sure we either have hardware
|
||||
support, or we can emulate it. */
|
||||
if ((GET_MODE_CLASS (mode) == MODE_VECTOR_INT
|
||||
|| GET_MODE_CLASS (mode) == MODE_VECTOR_FLOAT)
|
||||
&& !vector_mode_valid_p (mode))
|
||||
if (VECTOR_MODE_P (mode) && !vector_mode_valid_p (mode))
|
||||
{
|
||||
error ("unable to emulate '%s'", GET_MODE_NAME (mode));
|
||||
return NULL_TREE;
|
||||
|
|
|
@ -1155,9 +1155,7 @@ gen_lowpart_common (mode, x)
|
|||
else if (GET_CODE (x) == SUBREG || GET_CODE (x) == REG
|
||||
|| GET_CODE (x) == CONCAT || GET_CODE (x) == CONST_VECTOR)
|
||||
return simplify_gen_subreg (mode, x, GET_MODE (x), offset);
|
||||
else if ((GET_MODE_CLASS (mode) == MODE_VECTOR_INT
|
||||
|| GET_MODE_CLASS (mode) == MODE_VECTOR_FLOAT)
|
||||
&& GET_MODE (x) == VOIDmode)
|
||||
else if (VECTOR_MODE_P (mode) && GET_MODE (x) == VOIDmode)
|
||||
return simplify_gen_subreg (mode, x, int_mode_for_mode (mode), offset);
|
||||
/* If X is a CONST_INT or a CONST_DOUBLE, extract the appropriate bits
|
||||
from the low-order part of the constant. */
|
||||
|
|
|
@ -2707,8 +2707,7 @@ simplify_subreg (outermode, op, innermode, byte)
|
|||
int offset, part;
|
||||
unsigned HOST_WIDE_INT val = 0;
|
||||
|
||||
if (GET_MODE_CLASS (outermode) == MODE_VECTOR_INT
|
||||
|| GET_MODE_CLASS (outermode) == MODE_VECTOR_FLOAT)
|
||||
if (VECTOR_MODE_P (outermode))
|
||||
{
|
||||
/* Construct a CONST_VECTOR from individual subregs. */
|
||||
enum machine_mode submode = GET_MODE_INNER (outermode);
|
||||
|
|
Loading…
Add table
Reference in a new issue