diff mbox

[avr,committed] Fix PR54476

Message ID 5045CEEC.1090808@gjlay.de
State New
Headers show

Commit Message

Georg-Johann Lay Sept. 4, 2012, 9:50 a.m. UTC
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190920
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190921

Applied these obvious fix for PR54476.

Johann

--
diff mbox

Patch

Index: config/avr/avr.c
===================================================================
--- config/avr/avr.c    (revision 190914)
+++ config/avr/avr.c    (working copy)
@@ -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;