summaryrefslogtreecommitdiff
path: root/gcc/convert.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2005-08-23 17:48:37 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2005-08-23 17:48:37 +0000
commit4d3c798d3f0b7a2e2ec4c577c8e549d915e4ab37 (patch)
tree4c0428b73658184eadcaa843efb1e394f6f5bb89 /gcc/convert.c
parent28d0e143fe4a942b5c29b087db18107664e0809f (diff)
downloadgcc-4d3c798d3f0b7a2e2ec4c577c8e549d915e4ab37.tar.gz
re PR middle-end/23517 (can't cast between generic vector types and target supported vector types)
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. From-SVN: r103406
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");