summaryrefslogtreecommitdiff
path: root/gcc/convert.c
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-23 17:48:37 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-23 17:48:37 +0000
commita0bfd1b9d36fc14ba7fbc53c7b4d31d4ca93e4ed (patch)
tree4c0428b73658184eadcaa843efb1e394f6f5bb89 /gcc/convert.c
parent386367fa4827ceac357595e178d56f55ed27e898 (diff)
downloadgcc-a0bfd1b9d36fc14ba7fbc53c7b4d31d4ca93e4ed.tar.gz
2005-08-23 Paolo Bonzini <bonzini@gnu.org>
PR middle-end/23517 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert between vectors. * convert.c (convert_to_integer, convert_to_vector): Likewise. * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103406 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r--gcc/convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/convert.c b/gcc/convert.c
index 90793320930..e5f8dcd76de 100644
--- a/gcc/convert.c
+++ b/gcc/convert.c
@@ -684,7 +684,7 @@ convert_to_integer (tree type, tree expr)
error ("can't convert between vector values of different size");
return error_mark_node;
}
- return build1 (NOP_EXPR, type, expr);
+ return build1 (VIEW_CONVERT_EXPR, type, expr);
default:
error ("aggregate value used where an integer was expected");
@@ -760,7 +760,7 @@ convert_to_vector (tree type, tree expr)
error ("can't convert between vector values of different size");
return error_mark_node;
}
- return build1 (NOP_EXPR, type, expr);
+ return build1 (VIEW_CONVERT_EXPR, type, expr);
default:
error ("can't convert value to a vector");