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 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2028
Closed
Open
Created Nov 18, 2011 by Robert Bernecky@rbeDeveloper

_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]!
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking