public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/66821] New: reassoc-37.c fails on -march=pentium
@ 2015-07-09  9:51 julia.koval at intel dot com
  2015-07-09 11:21 ` [Bug target/66821] " hjl.tools at gmail dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: julia.koval at intel dot com @ 2015-07-09  9:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

            Bug ID: 66821
           Summary: reassoc-37.c fails on -march=pentium
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: julia.koval at intel dot com
  Target Milestone: ---

FAIL: gcc.dg/tree-ssa/reassoc-37.c scan-tree-dump optimized
"(8784908|0x0*860c0c)"
FAIL: gcc.dg/tree-ssa/reassoc-37.c scan-tree-dump optimized "(<<|>>)"

./gcc -m32 reassoc-37.c
193.t.optimised pass generates:
  <bb 2>:
  _26 = (unsigned int) x_2(D);
  if (_26 > 23)
    goto <bb 4>;
  else
    goto <bb 3>;

  <bb 3>:
  _28 = 8784908 >> x_2(D);
  _29 = _28 & 1;
  _34 = ~_28;
  _32 = _34 & 1;
  _30 = (_Bool) _34;
  if (_30 != 0)
    goto <bb 4>;
  else
    goto <bb 5>;

./gcc -m32 -march=pentium
193.t.optimised pass generates:
<bb 2>:
  _22 = (unsigned int) x_2(D);
  _23 = _22 & 4294967287;
  _24 = _23 + 4294967294;
  if (_24 > 1)
    goto <bb 3>;
  else
    goto <bb 6>;

  <bb 3>:
  _20 = _22 + 4294967279;
  if (_20 > 1)
    goto <bb 4>;
  else
    goto <bb 6>;


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=pentium
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
@ 2015-07-09 11:21 ` hjl.tools at gmail dot com
  2015-07-09 12:08 ` julia.koval at intel dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-09 11:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Which code is better?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=pentium
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
  2015-07-09 11:21 ` [Bug target/66821] " hjl.tools at gmail dot com
@ 2015-07-09 12:08 ` julia.koval at intel dot com
  2015-07-09 12:15 ` hjl.tools at gmail dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: julia.koval at intel dot com @ 2015-07-09 12:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

--- Comment #2 from Yulia Koval <julia.koval at intel dot com> ---
Well, second one looks better, but first one generates 9b smaller code.
Can we disable this test for this target if it is not an issue?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=pentium
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
  2015-07-09 11:21 ` [Bug target/66821] " hjl.tools at gmail dot com
  2015-07-09 12:08 ` julia.koval at intel dot com
@ 2015-07-09 12:15 ` hjl.tools at gmail dot com
  2015-07-09 13:52 ` julia.koval at intel dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-09 12:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Yulia Koval from comment #2)
> Well, second one looks better, but first one generates 9b smaller code.
> Can we disable this test for this target if it is not an issue?

This is a tuning issue.  We want smaller codes for IA MCU.  Please check
-march=iamcu, not -march=pentium.  We can't change Pentium tuning.  But
we can change IA MCU tuning.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=pentium
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
                   ` (2 preceding siblings ...)
  2015-07-09 12:15 ` hjl.tools at gmail dot com
@ 2015-07-09 13:52 ` julia.koval at intel dot com
  2015-07-09 13:54 ` hjl.tools at gmail dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: julia.koval at intel dot com @ 2015-07-09 13:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

--- Comment #4 from Yulia Koval <julia.koval at intel dot com> ---
The issue remains for -march=iamcu but not for -miamcu.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=pentium
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
                   ` (3 preceding siblings ...)
  2015-07-09 13:52 ` julia.koval at intel dot com
@ 2015-07-09 13:54 ` hjl.tools at gmail dot com
  2015-07-09 13:58 ` julia.koval at intel dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-09 13:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Yulia Koval from comment #4)
> The issue remains for -march=iamcu but not for -miamcu.

Let's fix -march=iamcu.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=pentium
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
                   ` (4 preceding siblings ...)
  2015-07-09 13:54 ` hjl.tools at gmail dot com
@ 2015-07-09 13:58 ` julia.koval at intel dot com
  2015-07-09 14:01 ` hjl.tools at gmail dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: julia.koval at intel dot com @ 2015-07-09 13:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

--- Comment #6 from Yulia Koval <julia.koval at intel dot com> ---
msticlxl58$ size miam
   text    data     bss     dec     hex filename
     72       0       0      72      48 miam
msticlxl58$ size march
   text    data     bss     dec     hex filename
     81       0       0      81      51 march


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=pentium
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
                   ` (5 preceding siblings ...)
  2015-07-09 13:58 ` julia.koval at intel dot com
@ 2015-07-09 14:01 ` hjl.tools at gmail dot com
  2015-07-09 14:05 ` julia.koval at intel dot com
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-09 14:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Yulia Koval from comment #6)
> msticlxl58$ size miam
>    text    data     bss     dec     hex filename
>      72       0       0      72      48 miam
> msticlxl58$ size march
>    text    data     bss     dec     hex filename
>      81       0       0      81      51 march

Which one is -march=iamcu?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=pentium
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
                   ` (6 preceding siblings ...)
  2015-07-09 14:01 ` hjl.tools at gmail dot com
@ 2015-07-09 14:05 ` julia.koval at intel dot com
  2015-07-09 18:06 ` [Bug target/66821] reassoc-37.c fails on -march=iamcu hjl.tools at gmail dot com
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: julia.koval at intel dot com @ 2015-07-09 14:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

--- Comment #8 from Yulia Koval <julia.koval at intel dot com> ---
(In reply to H.J. Lu from comment #7)
> (In reply to Yulia Koval from comment #6)
> > msticlxl58$ size miam
> >    text    data     bss     dec     hex filename
> >      72       0       0      72      48 miam
> > msticlxl58$ size march
> >    text    data     bss     dec     hex filename
> >      81       0       0      81      51 march
> 
> Which one is -march=iamcu?

miam is -miamcu, the same as just "-m32"
march is -march=iamcu


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=iamcu
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
                   ` (7 preceding siblings ...)
  2015-07-09 14:05 ` julia.koval at intel dot com
@ 2015-07-09 18:06 ` hjl.tools at gmail dot com
  2015-07-09 20:37 ` hjl.tools at gmail dot com
  2015-08-24 15:31 ` hjl at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-09 18:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-07-09
     Ever confirmed|0                           |1

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at

https://gcc.gnu.org/ml/gcc-patches/2015-07/msg00806.html


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=iamcu
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
                   ` (8 preceding siblings ...)
  2015-07-09 18:06 ` [Bug target/66821] reassoc-37.c fails on -march=iamcu hjl.tools at gmail dot com
@ 2015-07-09 20:37 ` hjl.tools at gmail dot com
  2015-08-24 15:31 ` hjl at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-09 20:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.0

--- Comment #11 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/66821] reassoc-37.c fails on -march=iamcu
  2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
                   ` (9 preceding siblings ...)
  2015-07-09 20:37 ` hjl.tools at gmail dot com
@ 2015-08-24 15:31 ` hjl at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: hjl at gcc dot gnu.org @ 2015-08-24 15:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66821

--- Comment #12 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Mon Aug 24 15:31:02 2015
New Revision: 227133

URL: https://gcc.gnu.org/viewcvs?rev=227133&root=gcc&view=rev
Log:
Add a testcase for PR target/66821

        PR target/66821
        * gcc.target/i386/pr66821.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr66821.c
Modified:
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-08-24 15:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-09  9:51 [Bug target/66821] New: reassoc-37.c fails on -march=pentium julia.koval at intel dot com
2015-07-09 11:21 ` [Bug target/66821] " hjl.tools at gmail dot com
2015-07-09 12:08 ` julia.koval at intel dot com
2015-07-09 12:15 ` hjl.tools at gmail dot com
2015-07-09 13:52 ` julia.koval at intel dot com
2015-07-09 13:54 ` hjl.tools at gmail dot com
2015-07-09 13:58 ` julia.koval at intel dot com
2015-07-09 14:01 ` hjl.tools at gmail dot com
2015-07-09 14:05 ` julia.koval at intel dot com
2015-07-09 18:06 ` [Bug target/66821] reassoc-37.c fails on -march=iamcu hjl.tools at gmail dot com
2015-07-09 20:37 ` hjl.tools at gmail dot com
2015-08-24 15:31 ` hjl at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).