public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hubicka at ucw dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/24003] [4.1 Regression] ACATS FAIL 17 regressions on x86-linux, fixed and decimal arithmetic broken
Date: Sun, 02 Oct 2005 21:46:00 -0000	[thread overview]
Message-ID: <20051002214601.19793.qmail@sourceware.org> (raw)
In-Reply-To: <bug-24003-7210@http.gcc.gnu.org/bugzilla/>



------- Comment #11 from hubicka at ucw dot cz  2005-10-02 21:46 -------
Subject: Re:  [4.1 Regression] ACATS FAIL 17 regressions on x86-linux, fixed
and decimal arithmetic broken

> 
> 
> ------- Comment #10 from laurent at guerby dot net  2005-10-02 16:20 -------
> It looks like it is indeed a codegen bug in s-arit64.adb, in Scaled_Divide the
> following line is miscompiled at -O1 and above (works at -O0):
> 
>             T2 := Lo (T1 rem Zlo) & D (4);
> 
> In my p.adb testcase, the compiler with Jan patch calls Lo with argument = 0
> whereas (T1 rem Zlo) returned (1073741824 rem 3221225472) = 1073741824 so
> stack/argument handling must be confused at some point. 
> 
> The bug is volatile, ie replacing the line above by:
> 
>             S3 := Lo (T1 rem Zlo);
>             if S3 = 0 then
>                T2 := Uns64 (D (4));
>             else
>                T2 := S3 & D (4);
>             end if;
> 
> Makes it go away.
Can you please check if -fno-tree-ter makes the bug go away?  We've
chatted recently with Jakub concerning bug in argument saving in nested
call and -maccumulate-outgoing-args.  I was under impression that we
should no longer produce the nested calls out of ter but aparently it is
still being done (that results in inferrior code quality too as we can't
generated nested calls very sanely)

Also can you also, please, point me closer to place in .optimized dump
where the misscompilation happens?  THere seems to be couple of lo calls
around.  I will be mostly offline tomorrow but should be able to fix it
day after that.

Thanks a lot!
Honza


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24003


  parent reply	other threads:[~2005-10-02 21:46 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-24003-7210@http.gcc.gnu.org/bugzilla/>
2005-10-02 16:20 ` laurent at guerby dot net
2005-10-02 21:46 ` hubicka at ucw dot cz [this message]
2005-10-02 21:55 ` ebotcazou at gcc dot gnu dot org
2005-10-02 22:30 ` hubicka at ucw dot cz
2005-10-03  3:37 ` laurent at guerby dot net
2005-10-05 20:08 ` [Bug middle-end/24003] " laurent at guerby dot net
2005-10-22 21:58 ` pinskia at gcc dot gnu dot org
2005-10-24 16:33 ` ebotcazou at gcc dot gnu dot org
2005-10-24 19:37 ` laurent at guerby dot net
2005-10-24 21:05 ` ebotcazou at gcc dot gnu dot org
2005-10-24 21:31 ` laurent at guerby dot net
2005-10-25  9:26 ` ebotcazou at gcc dot gnu dot org
2005-10-25 15:33 ` ebotcazou at gcc dot gnu dot org
2005-10-31  5:52 ` [Bug middle-end/24003] [4.1 Regression] 17 ACATS regressions (fixed point or decimal artihmetic) mmitchel at gcc dot gnu dot org
2005-11-11  7:43 ` ebotcazou at gcc dot gnu dot org
2005-11-11  7:44 ` ebotcazou at gcc dot gnu dot org
2005-11-13  9:55 ` ebotcazou at gcc dot gnu dot org
2005-11-13  9:57 ` ebotcazou at gcc dot gnu dot org
2005-09-21 17:31 [Bug ada/24003] New: ACATS FAIL 17 regressions on x86-linux, fixed and decimal arithmetic broken laurent at guerby dot net
2005-09-21 20:26 ` [Bug ada/24003] [4.1 Regression] " laurent at guerby dot net
2005-09-23 17:33 ` laurent at guerby dot net
2005-09-23 19:44 ` pinskia at gcc dot gnu dot org
2005-09-23 19:46 ` laurent at guerby dot net
2005-09-27 22:22 ` hubicka at ucw dot cz
2005-09-29 21:08 ` laurent at guerby dot net
2005-09-29 21:16 ` christian dot joensson at gmail dot com
2005-10-01 15:46 ` hubicka at gcc dot gnu dot org
2005-10-01 16:04 ` laurent at guerby dot net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051002214601.19793.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).