diff options
author | Bernd Schmidt <bernds@cygnus.co.uk> | 2000-06-24 19:26:42 +0000 |
---|---|---|
committer | Bernd Schmidt <crux@gcc.gnu.org> | 2000-06-24 19:26:42 +0000 |
commit | 0b4565c9d8b4b7530558beef1b9284b88848b2fa (patch) | |
tree | db94b2c1a07d5c04365806edf03c813ecba575c1 /gcc/expr.c | |
parent | cf036e712cdd515d1fed36a58023926e0dabb1aa (diff) | |
download | gcc-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.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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; |