This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/33290] [4.3 Regression] gcc.c-torture/execute/930921-1.c fails at -O1 and above now
- From: "rsandifo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2007 12:04:46 -0000
- Subject: [Bug middle-end/33290] [4.3 Regression] gcc.c-torture/execute/930921-1.c fails at -O1 and above now
- References: <bug-33290-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rsandifo at gcc dot gnu dot org 2007-09-03 12:04 -------
Created an attachment (id=14152)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14152&action=view)
Proposed patch
It was indeed my fault, sorry. When doing a 32x32->64 multiplication,
CONST_INTs are interpreted in the target mode (DImode). We were forcing
such a CONST_INT into an SImode register without sign-extending it first.
The attached patch seems to fix the testcase. I'm testing on x86_64-linux-gnu.
Could someone with access to PowerPC GNU/Linux or Darwin please test it too?
I could do before-and-after tests for powerpc-eabisim, but it'd probably
take longer.
--
rsandifo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rsandifo at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33290