This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: optimization/2903: Optimization bug with long long arithmetic


The provided patch returns the expected results now for the reported
error with the exception of the tail end of the patch being corrupted.
I've included that portion of the patch that I did apply.

Thanks to all involved,
Sean

*** arm.md.orig	Thu Jul 12 19:58:33 2001
--- arm.md	Fri Jul 13 12:36:39 2001
***************
*** 2027,2033 ****
    "TARGET_ARM
     && reload_completed
     && operands[0] != operands[1]"
!   [(set (match_dup 0) (and:SI (not:SI (match_dup 1)) (match_dup 2)))
     (set (match_dup 3) (match_dup 4))]
    "
    {
--- 2027,2033 ----
    "TARGET_ARM
     && reload_completed
     && operands[0] != operands[1]"
!   [(set (match_dup 0) (and:SI (not:SI (match_dup 2)) (match_dup 1)))
     (set (match_dup 3) (match_dup 4))]
    "
    {
***************
*** 2048,2054 ****
    "TARGET_ARM"
    "#"
    "TARGET_ARM && reload_completed"
!   [(set (match_dup 0) (and:SI (not:SI (match_dup 1)) (match_dup 2)))
     (set (match_dup 3) (and:SI (not:SI
  				(ashiftrt:SI (match_dup 2) (const_int 31)))
  			       (match_dup 4)))]
--- 2048,2054 ----
    "TARGET_ARM"
    "#"
    "TARGET_ARM && reload_completed"
!   [(set (match_dup 0) (and:SI (not:SI (match_dup 2)) (match_dup 1)))
     (set (match_dup 3) (and:SI (not:SI
  				(ashiftrt:SI (match_dup 2) (const_int 31)))
  			       (match_dup 4)))]

On 11 Jul 2001 17:53:41 +0000, rearnsha@gcc.gnu.org wrote:
> Synopsis: Optimization bug with long long arithmetic
> 
> Responsible-Changed-From-To: unassigned->rearnsha
> Responsible-Changed-By: rearnsha
> Responsible-Changed-When: Wed Jul 11 10:53:40 2001
> Responsible-Changed-Why:
>     Mine
> State-Changed-From-To: open->feedback
> State-Changed-By: rearnsha
> State-Changed-When: Wed Jul 11 10:53:40 2001
> State-Changed-Why:
>     Please try the attached patch
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2903&database=gcc



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]