sac2c issueshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues2017-11-19T20:37:57Zhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1314Sac2c product version fails to build sacprelude2017-11-19T20:37:57ZMiguel Sousa DiogoSac2c product version fails to build sacprelude| | |
| --- | --- |
| Bugzilla Link | [924](http://bugs.sac-home.org/show_bug.cgi?id=924) |
| Created on | Feb 27, 2012 13:12 |
| Version | svn |
| OS | MacOS X |
| Architecture | PC |
| Attachments | [sac2c_2012-02-27-130504_MBP-Migas...| | |
| --- | --- |
| Bugzilla Link | [924](http://bugs.sac-home.org/show_bug.cgi?id=924) |
| Created on | Feb 27, 2012 13:12 |
| Version | svn |
| OS | MacOS X |
| Architecture | PC |
| Attachments | [sac2c_2012-02-27-130504_MBP-Migas.crash](/uploads/aaebbf09fa145ba2d6a8632e122f742c/sac2c_2012-02-27-130504_MBP-Migas.crash), [xsacprelude.sacbugreport](/uploads/2515ee68594dfa112455bcff86a14e9b/xsacprelude.sacbugreport), [sac2c_2012-04-23-155505_MBP-Migas.crash](/uploads/d32308b1d4d3059e1331669358cb3f2c/sac2c_2012-04-23-155505_MBP-Migas.crash), [sacprelude.sacbugreport](/uploads/2f9bb6619d5de9d9ab130b919b1fb3e5/sacprelude.sacbugreport) |
## Extended Description
<pre>Created an attachment (id=855)
sac bug report
Running "make prod" from svn fails compiling sacprelude.sac. It's crashing on the constant folding subphase of enhancing with-loops.
I came across this on OS X, I'm not sure if this is a platform specific issue or not. I'm attaching the sac bug report.</pre>Robert BerneckyRobert Berneckyhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1299Optimization phase pessimizes2017-11-19T20:36:37ZRobert BerneckyOptimization phase pessimizes| | |
| --- | --- |
| Bugzilla Link | [482](http://bugs.sac-home.org/show_bug.cgi?id=482) |
| Created on | Apr 17, 2009 17:51 |
| Version | 1.00beta |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>prd.sac is a sim...| | |
| --- | --- |
| Bugzilla Link | [482](http://bugs.sac-home.org/show_bug.cgi?id=482) |
| Created on | Apr 17, 2009 17:51 |
| Version | 1.00beta |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>prd.sac is a simple benchmark that essentially does +/⍳n.
If I compile sac/apex/prd.sac with -dowlf, I get this fold-WL
as the inner loop in main():
_pinl_773__z = with {
([ 0 ] <= _pinl_769__iv=[_pinl_774___eat_64] < [ 10000000 ])
{
_pinl_775___ea_466_z = _accu_( _pinl_769__iv);
_al_1542 = _sub_SxS_( _pinl_775___ea_466_z, _pinl_774___eat_64);
_al_1543 = _add_SxS_( 9999999, _al_1542);
} : _al_1543 ;
} :
fold( _MAIN::plusIII, _isaa_1569__rso_56_TheWorld);
But, if I compile it with -nowlf -doswlf, I get this:
_pinl_773__z = with {
([ 0 ] <= _pinl_769__iv=[_pinl_774___eat_64] < [ 10000000 ])
{
_pinl_775___ea_466_z = _accu_( _pinl_769__iv);
_pinl_784_____flat_69 = _add_SxS_( _pinl_775___ea_466_z, _pinl_774___eat_64);
} : _pinl_784_____flat_69 ;
} :
fold( _MAIN::plusIII, _isaa_1556__rso_56_TheWorld);
Note that the first example has an _sub_SxS_ in it?
I have not had time to look into where it's being introduced,
except that it's in b11:cyc.</pre>Robert BerneckyRobert Berneckyhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1253Compiling partitionslicerFailure.simpler.sac AWLF unit with -noctz gives wron...2017-11-19T20:33:48ZRobert BerneckyCompiling partitionslicerFailure.simpler.sac AWLF unit with -noctz gives wrong answer| | |
| --- | --- |
| Bugzilla Link | [1098](http://bugs.sac-home.org/show_bug.cgi?id=1098) |
| Created on | Oct 10, 2013 16:25 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
| Attachments | [partitionslicerFailure.simpler.sa...| | |
| --- | --- |
| Bugzilla Link | [1098](http://bugs.sac-home.org/show_bug.cgi?id=1098) |
| Created on | Oct 10, 2013 16:25 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
| Attachments | [partitionslicerFailure.simpler.sac](/uploads/86614eddb7430476520945d1abd68432/partitionslicerFailure.simpler.sac) |
## Extended Description
<pre>Created an attachment (id=993)
source code to reproduce fault
sac2c partitionslicerFailure.simpler.sac -v1 -doawlf -nowlf
warning: AWLF is enabled: -ecc enabled.
warning: AWLF is enabled: -extrema enabled.
warning: AWLF is enabled: -maxoptcyc=20
sac@rattler:~/sac/testsuite/optimizations/awlf$ a.out; echo $?40000
0
sac@rattler:~/sac/testsuite/optimizations/awlf$ sac2c partitionslicerFailure.simpler.sac -v1 -doawlf -nowlf -noctz
warning: AWLF is enabled: -ecc enabled.
warning: AWLF is enabled: -extrema enabled.
warning: AWLF is enabled: -maxoptcyc=20
sac@rattler:~/sac/testsuite/optimizations/awlf$ a.out; echo $?-nan
255
sac@rattler:~/sac/testsuite/optimizations/awlf$ sac2c -V
sac2c v1.00-beta (Haggis And Apple)
product rev 18396 linux-gnu_x86_64
(Wed Oct 9 16:38:56 EDT 2013 by sac)
I'm not sure what's going on here: I eyeballed some -bopt code
last night, to no avail.</pre>Robert BerneckyRobert Bernecky