aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@cygnus.co.uk>2000-06-24 19:26:42 +0000
committerBernd Schmidt <crux@gcc.gnu.org>2000-06-24 19:26:42 +0000
commit0b4565c9d8b4b7530558beef1b9284b88848b2fa (patch)
treedb94b2c1a07d5c04365806edf03c813ecba575c1 /gcc/expr.c
parentcf036e712cdd515d1fed36a58023926e0dabb1aa (diff)
downloadgcc-0b4565c9d8b4b7530558beef1b9284b88848b2fa.zip
gcc-0b4565c9d8b4b7530558beef1b9284b88848b2fa.tar.gz
gcc-0b4565c9d8b4b7530558beef1b9284b88848b2fa.tar.bz2
Vector conversions support
From-SVN: r34680
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 07fa592..02a7a35 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -545,6 +545,23 @@ convert_move (to, from, unsignedp)
return;
}
+ if (VECTOR_MODE_P (to_mode) || VECTOR_MODE_P (from_mode))
+ {
+ if (GET_MODE_BITSIZE (from_mode) != GET_MODE_BITSIZE (to_mode))
+ abort ();
+
+ if (VECTOR_MODE_P (to_mode))
+ from = gen_rtx_SUBREG (to_mode, from, 0);
+ else
+ to = gen_rtx_SUBREG (from_mode, to, 0);
+
+ emit_move_insn (to, from);
+ return;
+ }
+
+ if (to_real != from_real)
+ abort ();
+
if (to_real)
{
rtx value;