Changeset 8d66610 for tests/array-container/array-basic.cfa
- Timestamp:
- May 21, 2021, 4:48:10 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- f1bce515
- Parents:
- 5407cdc (diff), 7404cdc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
tests/array-container/array-basic.cfa (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/array-container/array-basic.cfa
r5407cdc r8d66610 5 5 // 6 6 7 forall( ztype(Nx), ztype(Ny), ztype(Nz))7 forall( [Nx], [Ny], [Nz] ) 8 8 void typesTest( tag(Nx), tag(Ny), tag(Nz) ) { 9 9 … … 59 59 } 60 60 61 forall( ztype(Nw), ztype(Nx), ztype(Ny), ztype(Nz))61 forall( [Nw], [Nx], [Ny], [Nz] ) 62 62 void fillHelloData( array( float, Nw, Nx, Ny, Nz ) & wxyz ) { 63 63 for (w; z(Nw)) … … 68 68 } 69 69 70 forall( ztype(Zn)70 forall( [Zn] 71 71 , S & | sized(S) 72 72 ) … … 86 86 } 87 87 88 forall( ztype(Nw), ztype(Nx), ztype(Ny), ztype(Nz))88 forall( [Nw], [Nx], [Ny], [Nz] ) 89 89 void runtimeTest( tag(Nw), tag(Nx), tag(Ny), tag(Nz) ) { 90 90 … … 105 105 printf("result Ws [][][][] lo = %f\n", result); 106 106 107 // fixme: -[[-,-,-,-]] not working 108 // result = total1d_low( wxyz[[all, slice_ix, slice_ix, slice_ix]] ); 109 // printf("result Ws [,,,] lo = %f\n", result); 107 result = total1d_low( wxyz[[all, slice_ix, slice_ix, slice_ix]] ); 108 printf("result Ws [,,,] lo = %f\n", result); 110 109 111 110 result = total1d_hi( wxyz[all][slice_ix][slice_ix][slice_ix] ); 112 111 printf("result Ws [][][][] hi = %f\n", result); 113 112 114 // fixme: -[[-,-,-,-]] not working 115 // result = total1d_hi( wxyz[[all, slice_ix, slice_ix, slice_ix]] ); 116 // printf("result Ws [,,,] hi = %f\n", result); 113 result = total1d_hi( wxyz[[all, slice_ix, slice_ix, slice_ix]] ); 114 printf("result Ws [,,,] hi = %f\n", result); 117 115 118 116 // summing across X, with w=y=z=1 … … 126 124 printf("result Xs [][][][] lo = %f\n", result); 127 125 128 // fixme: -[[-,-,-,-]] not working 129 // result = total1d_low( wxyz[[slice_ix, all, slice_ix, slice_ix]] ); 130 // printf("result Xs [,,,] lo = %f\n", result); 126 result = total1d_low( wxyz[[slice_ix, all, slice_ix, slice_ix]] ); 127 printf("result Xs [,,,] lo = %f\n", result); 131 128 132 129 result = total1d_hi( wxyz[slice_ix][all][slice_ix][slice_ix] ); 133 130 printf("result Xs [][][][] hi = %f\n", result); 134 131 135 // fixme: -[[-,-,-,-]] not working 136 // result = total1d_hi( wxyz[[slice_ix, all, slice_ix, slice_ix]] ); 137 // printf("result Xs [,,,] hi = %f\n", result); 132 result = total1d_hi( wxyz[[slice_ix, all, slice_ix, slice_ix]] ); 133 printf("result Xs [,,,] hi = %f\n", result); 138 134 139 135 }
Note:
See TracChangeset
for help on using the changeset viewer.