aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2003-04-30 00:49:01 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2003-04-30 00:49:01 +0000
commit9c0631a756c7409907a9302e77531a94d9cd6263 (patch)
treea1b6ae09de57e5566900ed964808e7ed0f31cf4a /gcc/expr.c
parent95b588cf1579b73cb3152ef77757de581e666bd6 (diff)
downloadgcc-9c0631a756c7409907a9302e77531a94d9cd6263.zip
gcc-9c0631a756c7409907a9302e77531a94d9cd6263.tar.gz
gcc-9c0631a756c7409907a9302e77531a94d9cd6263.tar.bz2
expr.c (emit_group_load): Dump parallels of simd types to memory.
2003-04-29 Aldy Hernandez <aldyh@redhat.com> * expr.c (emit_group_load): Dump parallels of simd types to memory. From-SVN: r66280
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 73f9baf..6f0b36c 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;