bugMIT/GNU Scheme - Bugs: bug #27385, compiler still generates bad i386...

 
 

bug #27385: compiler still generates bad i386 code in the general case of FIXNUM-LSH, for negative arguments

Submitted by:  Taylor R. Campbell <riastradh>
Submitted on:  Sat Sep 5 06:37:02 2009  
 
Category: compilerSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect behavior
Status: FixedPrivacy: Public
Assigned to: Taylor R. Campbell <riastradh>Originator Name: 
Open/Closed: Closed
Keywords: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri Nov 13 22:10:24 2009, comment #1:

Should be fixed in commit 1f62f5c1dc6575221159605ab72e44adcafdfe7b.

Taylor R. Campbell <riastradh>
Project MemberIn charge of this item.
Sat Sep 5 06:37:02 2009, original submission:

All of the following should yield -1:

(fix:lsh -1 -1)
;Value: 33554431

(fix:lsh -1 -30)
;Value: 0

(fix:lsh -123 -30)
;Value: 0

This should yield -62:

(fix:lsh -123 -1)
;Value: 33554370

The general case is already so complex that it would probably be worthwhile just to bail and defer to the microcode primitive, but I don't think Liar can do that only for particular uses of primitives, and obviously we don't want to do that for every use of the FIXNUM-LSH primitive.

Taylor R. Campbell <riastradh>
Project MemberIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by riastradh (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Aug 30 18:17:22 2013riastradhStatusReady For Test=>Fixed
      Assigned toNone=>riastradh
      Open/ClosedOpen=>Closed
    Fri Nov 13 22:10:24 2009riastradhStatusNone=>Ready For Test
    Sat Sep 5 06:37:36 2009riastradhSummarycompiler still generates bad code in the general case of FIXNUM-LSH, for negative arguments=>compiler still generates bad i386 code in the general case of FIXNUM-LSH, for negative arguments

    Back to the top


    Powered by Savane 3.1-cleanup