_mask_VxVxV_() is very broken
|
|
Bugzilla Link |
891 |
Created on |
Nov 18, 2011 19:48 |
Resolution |
FIXED |
Resolved on |
Nov 28, 2011 23:19 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
Summary says it all!
sac2c crud.sac -v0 -noopt
sac@rattler:~/sac/testsuite/optimizations/constantfolding$ cat crud.sac
int[*] id( int[*] y)
{
return(y);
}
int main()
{
N = id( 3);
b = _gt_SxV_( N, [ 1,2,3,4,5]) ;
StdIO::print(b);
z = _mask_VxVxV_( b, [10,20,30,40,50], [11,12,13,14,15]);
StdIO::print(z);
return(0);
}
sac@rattler:~/sac/testsuite/optimizations/constantfolding$ a.out
Dimension: 1
Shape : < 5>
< 1 1 0 0 0 >
Dimension: 1
Shape : < 5>
< 0 0 0 0 0 >
We wanted to get: [ 10, 20, 13, 14, 15]!