source: proto/pabloj/trunk/input/test/b2k/idisa.b2k @ 3699

Last change on this file since 3699 was 3699, checked in by ksherdy, 5 years ago

Updated PabloJ to s2k.

File size: 825 bytes
Line 
1// KERNEL kernelName LCURLY funcDef (optFuncDef)? RCURLY TERMINATOR?;
2       
3kernel KernelName
4{
5    init
6    {
7        look_ahead = [0];
8        look_behind = [0];
9        carry_init = [0,0,1,1];
10    }
11
12    function void do_block()
13    {
14   
15        BitBlock a;
16        BitBlock b;
17        BitBlock c;
18        BitBlock k;
19        BitBlock r;
20
21        /*
22        r = bitblock.any<128>(a);
23        */
24       
25       
26        r = simd.add(abs);
27        /*
28        r = simd.neg(a);
29        r = simd.add_hl(a);
30        r = simd.xor_hl(a);
31        r = simd.slli(k);
32        r = simd.srli(k);
33        r = simd.srai(k);
34        r = simd.popcount(a);
35        r = simd.ctz(a);   
36        */
37
38       
39       
40    }
41
42    function void do_final_block()
43    {
44       
45       
46    }
47
48    CarryDeclare(carry_set_0, 0, 0);
49}; 
Note: See TracBrowser for help on using the repository browser.