LACSO/LACSI break stdlib shift() in AWLF Unit Test
|Created on||Nov 27, 2012 22:05|
|Resolved on||Nov 28, 2012 19:58|
Created an attachment (id=940) source code to reproduce fault I just stumbled onto a problem with LACSO and LACSI, wherein they scramble scalar result values coming in/out of CONDFUNs. Since both optimizations are currently disabled, this is not a big problem, but it was a wee bit puzzling to figure out. sac2c -V sac2c v1.00-beta (Haggis And Apple) developer rev 18033 linux-gnu_x86_64 (Tue Nov 27 16:57:29 EST 2012 by sac) sac2c -v1 crudshift.sac -dolacsi -dolacso -nols prints a vector of all 42s, which is certainly wrong for "shift(2, 42, iota(50))". It works properly if you compile without the above options.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information