Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1055
Closed
Open
Created Dec 20, 2009 by Robert Bernecky@rbeDeveloper

AL/DL pessimization

Bugzilla Link 635
Created on Dec 20, 2009 19:26
Version svn
OS Linux
Architecture PC
Attachments bugAS2.sac

Extended Description

If I compile bugAS2.sac with "sac2c bugAS2.sac -b11", I get this in main:
 _flat_0 = 5;
  I = _MAIN::id( _flat_0);
  _flat_1 = 23;
  P = _MAIN::id( _flat_1);
  _esd_63 = _neg_S_( P);
  _cf_64 = _neg_S_( I);
  _dl_80 = 3;
  _dl_81 = _mul_SxS_( I, _dl_80);
  _dl_84 = _mul_SxS_( _cf_64, _dl_80);
  _dl_88 = _mul_SxS_( _esd_63, _dl_80);
  _dl_105 = _mul_SxS_( P, _dl_80);
  _al_1345 = _add_SxS_( _dl_105, _dl_81);
  _al_1346 = _add_SxS_( _al_1345, _dl_84);
  _al_1347 = _add_SxS_( _al_1346, _dl_88);
  return( _al_1347);
}
which isn't exactly what we were hoping for. If I compile with 
"sac2c bugAS2.sac -noal -b11", I get this:
  _dl_110 = 0;
  return( _dl_16687:MODIFIED110);
which is what we was hoping to see. Build #16687:MODIFIED.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking