 Timestamp:
 May 27, 2013, 1:54:27 PM (6 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

proto/pabloj/branches/refactorexperimental/input/test/pabloB/test.pablob
r3033 r3192 1 1 // KERNEL kernelName LCURLY funcDef (optFuncDef)? RCURLY TERMINATOR?; 2 2 3 3 kernel KernelName 4 4 { 5 6 7 8 5 init 6 { 7 8 } 9 9 10 11 12 13 varBitBlock a;14 varBitBlock b;15 varBitBlock c;16 varBitBlock k;17 varBitBlock r;18 varbool t;19 20 21 22 23 24 25 26 27 28 29 r = simd.ctz(a); 30 10 function void do_block() 11 { 12 13 BitBlock a; 14 BitBlock b; 15 BitBlock c; 16 BitBlock k; 17 BitBlock r; 18 bool t; 19 20 /* 21 r = simd.add(abs); 22 r = simd.neg(a); 23 r = simd.add_hl(a); 24 r = simd.xor_hl(a); 25 r = simd.slli(k); 26 r = simd.srli(k); 27 r = simd.srai(k); 28 r = simd.popcount(a); 29 r = simd.ctz(a); 30 */ 31 31 32 33 34 35 36 37 r = simd.not<1>(a); 38 39 r = simd.ifh<16>(a, b, c); 40 41 42 r = simd.slli<8>(1, a); 32 t = bitblock.any<1>(a); 33 r = bitblock.slli<1>(10, a); 34 bitblock.store_unaligned<1>(a, b); 35 r = bitblock.load_aligned<1>(b); 36 37 r = simd.not<1>(a); 38 r = simd.nor<1>(a, b); 39 r = simd.ifh<16>(a, b, c); 40 41 r = simd.constant<2>(3); 42 r = simd.slli<8>(1, a); 43 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 44 r = simd.add<1>(a,b); 45 r = simd.sub<2>(a,b); 46 r = simd.mult<4>(a,b); 47 r = simd.eq<8>(a,b); 48 r = simd.gt<16>(a,b); 49 r = simd.ugt<32>(a,b); 50 r = simd.lt<64>(a,b); 51 r = simd.ult<128>(a,b); 52 r = simd.max<128>(a,b); 53 r = simd.umax<1>(a,b); 54 r = simd.min<2>(a,b); 55 r = simd.umin<4>(a,b); 56 r = simd.sll<64>(a,b); 57 r = simd.srl<64>(a,b); 58 //r = simd.srai<32>(10,a); 59 60 //r = simd.if<128>(a,b,c); 61 62 } 63 63 64 65 66 67 68 64 function void do_final_block() 65 { 66 67 68 } 69 69 70 71 }; 70 CarryDeclare(carry_set_0, 0, 0); 71 };
Note: See TracChangeset
for help on using the changeset viewer.