expr.c (emit_group_load): Dump parallels of simd types to memory.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 30 Apr 2003 00:49:01 +0000 (00:49 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Wed, 30 Apr 2003 00:49:01 +0000 (00:49 +0000)
2003-04-29  Aldy Hernandez  <aldyh@redhat.com>

        * expr.c (emit_group_load): Dump parallels of simd types to
        memory.

From-SVN: r66280

gcc/ChangeLog
gcc/expr.c

index 75d3dec41be289b33880b29db996753897c548a8..af70aedd081b7446f012d47c1df5493aba2e9edf 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
+
+        * expr.c (emit_group_load): Dump parallels of simd types to
+        memory.
+
 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
 
        * genautomata.c (add_vect): Check undefined value for range type
index 73f9baf6eb5081f71acbe5fda4e5187eae3e05b4..6f0b36cfadacbabfebfe2417529ae05928e46d89 100644 (file)
@@ -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;