------- Comment #1 from pinskia at gcc dot gnu dot org  2008-06-05 22:56 -------
Fix for at least PowerPC (we should be trying to get the correct sized vector
mode):
Index: expmed.c
===================================================================
--- expmed.c    (revision 2510)
+++ expmed.c    (working copy)
@@ -1129,7 +1129,7 @@ extract_bit_field (rtx str_rtx, unsigned
        new_mode = MIN_MODE_VECTOR_INT;

       for (; new_mode != VOIDmode ; new_mode = GET_MODE_WIDER_MODE (new_mode))
-       if (GET_MODE_NUNITS (new_mode) == nunits
+       if (GET_MODE_SIZE (new_mode) == GET_MODE_SIZE (new_mode)
            && GET_MODE_INNER (new_mode) == tmode
            && targetm.vector_mode_supported_p (new_mode))
          break;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36444

Reply via email to