i386.c (print_reg): Fix typo.
authorRichard Biener <rguenther@suse.de>
Tue, 6 Feb 2018 09:26:48 +0000 (09:26 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 6 Feb 2018 09:26:48 +0000 (09:26 +0000)
2018-02-06  Richard Biener  <rguenther@suse.de>

* config/i386/i386.c (print_reg): Fix typo.
(ix86_loop_unroll_adjust): Do not unroll beyond the original nunroll.

From-SVN: r257407

gcc/ChangeLog
gcc/config/i386/i386.c

index f6ac7f4..8785b57 100644 (file)
@@ -1,3 +1,8 @@
+2018-02-06  Richard Biener  <rguenther@suse.de>
+
+       * config/i386/i386.c (print_reg): Fix typo.
+       (ix86_loop_unroll_adjust): Do not unroll beyond the original nunroll.
+
 2018-02-06  Eric Botcazou  <ebotcazou@adacore.com>
 
        * configure: Regenerate.
index b07f581..70b6775 100644 (file)
@@ -17946,7 +17946,7 @@ print_reg (rtx x, int code, FILE *file)
    F,f -- likewise, but for floating-point.
    O -- if HAVE_AS_IX86_CMOV_SUN_SYNTAX, expand to "w.", "l." or "q.",
        otherwise nothing
-   R -- print embeded rounding and sae.
+   R -- print embedded rounding and sae.
    r -- print only sae.
    z -- print the opcode suffix for the size of the current operand.
    Z -- likewise, with special suffixes for x87 instructions.
@@ -50560,7 +50560,7 @@ ix86_loop_unroll_adjust (unsigned nunroll, struct loop *loop)
   free (bbs);
 
   if (mem_count && mem_count <=32)
-    return 32/mem_count;
+    return MIN (nunroll, 32 / mem_count);
 
   return nunroll;
 }