rs6000.c (function_arg): Set inner mode of SPE vectors to SI.
authorJim Wilson <wilson@redhat.com>
Fri, 22 Nov 2002 02:22:13 +0000 (02:22 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 22 Nov 2002 02:22:13 +0000 (02:22 +0000)
2002-11-21  Jim Wilson  <wilson@redhat.com>

* config/rs6000/rs6000.c (function_arg): Set inner mode of SPE
vectors to SI.

From-SVN: r59365

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index ab62b5063aa0de0d9363db513c12893e5e35fdd3..c88988dbf213734c0711e0847e5a8f9eec99bbe4 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-21  Jim Wilson  <wilson@redhat.com>
+
+       * config/rs6000/rs6000.c (function_arg): Set inner mode of SPE
+       vectors to SI.
+
 2002-11-21  Bob Wilson  <bob.wilson@acm.org>
 
        * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Declare.
index 5dd2e120a4b494bd0d380845f111b3978e1f286c..0d7d0782a869101d2d5affe4f3f8bc81eea7273e 100644 (file)
@@ -3173,10 +3173,7 @@ function_arg (cum, mode, type, named)
                  && SPE_VECTOR_MODE (mode) && !named)
                {
                  rtx r1, r2;
-                 enum machine_mode m = GET_MODE_INNER (mode);
-
-                 if (mode == V1DImode)
-                   m = SImode;
+                 enum machine_mode m = SImode;
 
                  r1 = gen_rtx_REG (m, gregno);
                  r1 = gen_rtx_EXPR_LIST (m, r1, const0_rtx);