From: Eric Botcazou Date: Wed, 12 Mar 2003 09:42:00 +0000 (+0100) Subject: re PR rtl-optimization/9888 (-mcpu=k6 -Os produces out of range loop instructions) X-Git-Tag: releases/gcc-3.2.3~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64c28c3e6d06f87c89ad051ca3cdc0fec1e75c60;p=thirdparty%2Fgcc.git re PR rtl-optimization/9888 (-mcpu=k6 -Os produces out of range loop instructions) PR optimization/9888 * config/i386/i386.md (jcc_1): Fix range. (jcc_2): Likewise. (jump): LIkewise. (doloop_end_internal): Likewise. From-SVN: r64234 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 972e5abb40a3..031a1b34494a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2003-03-12 Eric Botcazou + + PR optimization/9888 + * config/i386/i386.md (jcc_1): Fix range. + (jcc_2): Likewise. + (jump): LIkewise. + (doloop_end_internal): Likewise. + 2003-03-12 Eric Botcazou PR optimization/9888 diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index ed497f0b0e08..13a830be09a3 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -12955,9 +12955,9 @@ (set_attr "modrm" "0") (set (attr "length") (if_then_else (and (ge (minus (match_dup 0) (pc)) - (const_int -128)) + (const_int -126)) (lt (minus (match_dup 0) (pc)) - (const_int 124))) + (const_int 128))) (const_int 2) (const_int 6)))]) @@ -12973,9 +12973,9 @@ (set_attr "modrm" "0") (set (attr "length") (if_then_else (and (ge (minus (match_dup 0) (pc)) - (const_int -128)) + (const_int -126)) (lt (minus (match_dup 0) (pc)) - (const_int 124))) + (const_int 128))) (const_int 2) (const_int 6)))]) @@ -13240,9 +13240,9 @@ [(set_attr "type" "ibr") (set (attr "length") (if_then_else (and (ge (minus (match_dup 0) (pc)) - (const_int -128)) + (const_int -126)) (lt (minus (match_dup 0) (pc)) - (const_int 124))) + (const_int 128))) (const_int 2) (const_int 5))) (set_attr "modrm" "0")]) @@ -13361,9 +13361,9 @@ (set (attr "length") (if_then_else (and (eq_attr "alternative" "0") (and (ge (minus (match_dup 0) (pc)) - (const_int -128)) + (const_int -126)) (lt (minus (match_dup 0) (pc)) - (const_int 124)))) + (const_int 128)))) (const_int 2) (const_int 16))) ;; We don't know the type before shorten branches. Optimistically expect diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 97a86d1e6e3a..7d877607d4de 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-03-12 Eric Botcazou + + * gcc.dg/i386-loop-2.c: New test. + 2003-03-09 Eric Botcazou * gcc.dg/i386-loop-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/i386-loop-2.c b/gcc/testsuite/gcc.dg/i386-loop-2.c index 3a3e69e98b4f..9c87d8b840c1 100644 --- a/gcc/testsuite/gcc.dg/i386-loop-2.c +++ b/gcc/testsuite/gcc.dg/i386-loop-2.c @@ -1,7 +1,7 @@ /* PR optimization/9888 */ /* Originator: Jim Bray */ /* { dg-do run { target i?86-*-* } } */ -/* { dg-options "-mtune=k6 -Os" } */ +/* { dg-options "-mcpu=k6 -Os" } */ enum reload_type {