reload1.c (reload_cse_record_set): Ignore values for SREG if their mode is narrower...
authorJeff Law <law@gcc.gnu.org>
Thu, 22 May 1997 21:49:33 +0000 (15:49 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 22 May 1997 21:49:33 +0000 (15:49 -0600)
        * reload1.c (reload_cse_record_set): Ignore values for SREG if
        their mode is narrower than DEST_MODE.

From-SVN: r14111

gcc/reload1.c

index 62ac6d71d1faf2eed21412f713f3f2f695b713e2..80cb8c3933f8e499d0cfedef6c3f06e680a7d3d7 100644 (file)
@@ -8305,6 +8305,9 @@ reload_cse_record_set (set, body)
                continue;
              if (dest_mode == GET_MODE (XEXP (x, 0)))
                tmp = XEXP (x, 0);
+             else if (GET_MODE_BITSIZE (dest_mode)
+                       > GET_MODE_BITSIZE (GET_MODE (XEXP (x, 0))))
+               continue;
              else
                tmp = gen_lowpart_common (dest_mode, XEXP (x, 0));
              if (tmp)