Last change
on this file since 3192 was
3192,
checked in by ksherdy, 6 years ago

Sweeping changes to sync branch with trunk.

File size:
1.2 KB

Rev  Line  

[3033]  1  // KERNEL kernelName LCURLY funcDef (optFuncDef)? RCURLY TERMINATOR?; 

 2  

 3  kernel KernelName 

 4  { 

 5  init 

 6  { 

 7  

 8  } 

 9  

 10  function void do_block() 

 11  { 

 12  

[3192]  13  BitBlock a; 

 14  BitBlock b; 

 15  BitBlock c; 

 16  BitBlock k; 

 17  BitBlock r; 

 18  bool t; 

[3033]  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  

 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  

 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  

 64  function void do_final_block() 

 65  { 

 66  

 67  

 68  } 

 69  

 70  CarryDeclare(carry_set_0, 0, 0); 

 71  }; 

Note: See
TracBrowser
for help on using the repository browser.