------- 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