]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/54476 ([avr] __builtin_avr_delay_cycles (-1ul) causes memory usage to...
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 4 Sep 2012 09:37:08 +0000 (09:37 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Tue, 4 Sep 2012 09:37:08 +0000 (09:37 +0000)
PR target/54476
* config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
SImode.

From-SVN: r190920

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

index 5ba70bf6b609521547a56855364cab4432cb85a1..3709a6357f679b0a055fe84758b51a9c0cc6c4a3 100644 (file)
@@ -1,3 +1,9 @@
+2012-09-04  Georg-Johann Lay  <avr@gjlay.de>
+
+       PR target/54476
+       * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
+       SImode.
+
 2012-09-04  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/54458
index bab13a4879577faa1c696f738bfd909f9a6f0074..95892ade4485a962fd2399a51b0b11ff447715f0 100644 (file)
@@ -10449,7 +10449,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;