OSDN Git Service

Backport from 2012-09-04 mainline r190920
authorgjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Sep 2012 09:38:42 +0000 (09:38 +0000)
committergjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Sep 2012 09:38:42 +0000 (09:38 +0000)
PR target/54476
* config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
SImode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@190921 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/avr/avr.c

index cde310d..0b7ba90 100644 (file)
@@ -1,3 +1,11 @@
+2012-09-04  Georg-Johann Lay  <avr@gjlay.de>
+
+       Backport from 2012-09-04 mainline r190920
+
+       PR target/54476
+       * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
+       SImode.
+
 2012-09-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
 
        Backport from 2012-09-04 mainline r190914
index 709ba61..a95ae30 100644 (file)
@@ -9926,7 +9926,7 @@ avr_mem_clobber (void)
 static void
 avr_expand_delay_cycles (rtx operands0)
 {
-  unsigned HOST_WIDE_INT cycles = UINTVAL (operands0);
+  unsigned HOST_WIDE_INT cycles = UINTVAL (operands0) & GET_MODE_MASK (SImode);
   unsigned HOST_WIDE_INT cycles_used;
   unsigned HOST_WIDE_INT loop_count;