(emit_group_load): Add case using gen_lowpart.
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 10 Jun 1997 21:39:22 +0000 (14:39 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 10 Jun 1997 21:39:22 +0000 (14:39 -0700)
From-SVN: r14224

gcc/expr.c

index 537eefba8aa77a7dbd45f4bc0ee61bec23ebcf0f..b3ca5395475b0590065c2ae0dcce17c682b9597b 100644 (file)
@@ -1813,6 +1813,9 @@ emit_group_load (x, y)
                   && GET_MODE (target_reg) == word_mode)
            /* This might be a const_double, so we can't just use SUBREG.  */
            source = operand_subword (y, 0, 0, VOIDmode);
+         else if (GET_MODE_SIZE (GET_MODE (target_reg))
+                  == GET_MODE_SIZE (GET_MODE (y)))
+           source = gen_lowpart (GET_MODE (target_reg), y);
          else
            abort ();       
        }