From: Aldy Hernandez Date: Wed, 30 Apr 2003 00:49:01 +0000 (+0000) Subject: expr.c (emit_group_load): Dump parallels of simd types to memory. X-Git-Tag: releases/gcc-3.4.0~6937 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c0631a756c7409907a9302e77531a94d9cd6263;p=thirdparty%2Fgcc.git expr.c (emit_group_load): Dump parallels of simd types to memory. 2003-04-29 Aldy Hernandez * expr.c (emit_group_load): Dump parallels of simd types to memory. From-SVN: r66280 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 75d3dec41be2..af70aedd081b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-04-29 Aldy Hernandez + + * expr.c (emit_group_load): Dump parallels of simd types to + memory. + 2003-04-29 Vladimir Makarov * genautomata.c (add_vect): Check undefined value for range type diff --git a/gcc/expr.c b/gcc/expr.c index 73f9baf6eb50..6f0b36cfadac 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -2363,6 +2363,19 @@ emit_group_load (dst, orig_src, ssize) else abort (); } + /* FIXME: A SIMD parallel will eventually lead to a subreg of a + SIMD register, which is currently broken. While we get GCC + to emit proper RTL for these cases, let's dump to memory. */ + else if (VECTOR_MODE_P (GET_MODE (dst)) + && GET_CODE (src) == REG) + { + int slen = GET_MODE_SIZE (GET_MODE (src)); + rtx mem; + + mem = assign_stack_temp (GET_MODE (src), slen, 0); + emit_move_insn (mem, src); + tmps[i] = adjust_address (mem, mode, (int) bytepos); + } else if (CONSTANT_P (src) || (GET_CODE (src) == REG && GET_MODE (src) == mode)) tmps[i] = src;