Line | |
---|

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 | |
---|

13 | BitBlock a; |
---|

14 | BitBlock b; |
---|

15 | BitBlock c; |
---|

16 | BitBlock k; |
---|

17 | BitBlock r; |
---|

18 | |
---|

19 | /* |
---|

20 | r = simd.add(abs); |
---|

21 | r = simd.neg(a); |
---|

22 | r = simd.add_hl(a); |
---|

23 | r = simd.xor_hl(a); |
---|

24 | r = simd.slli(k); |
---|

25 | r = simd.srli(k); |
---|

26 | r = simd.srai(k); |
---|

27 | r = simd.popcount(a); |
---|

28 | r = simd.ctz(a); |
---|

29 | */ |
---|

30 | |
---|

31 | t = bitblock.any<1>(a); |
---|

32 | r = bitblock.slli<1>(10, a); |
---|

33 | bitblock.store_unaligned<1>(a, b); |
---|

34 | r = bitblock.load_aligned<1>(b); |
---|

35 | |
---|

36 | r = simd.not<1>(a); |
---|

37 | r = simd.nor<1>(a, b); |
---|

38 | r = simd.ifh<16>(a, b, c); |
---|

39 | |
---|

40 | r = simd.constant<2>(3); |
---|

41 | r = simd.slli<8>(1, a); |
---|

42 | r = esimd.mergh<8>(a,b,c); |
---|

43 | r = simd.add<1>(a,b); |
---|

44 | r = simd.sub<2>(a,b); |
---|

45 | r = simd.mult<4>(a,b); |
---|

46 | r = simd.eq<8>(a,b); |
---|

47 | r = simd.gt<16>(a,b); |
---|

48 | r = simd.ugt<32>(a,b); |
---|

49 | r = simd.lt<64>(a,b); |
---|

50 | r = simd.ult<128>(a,b); |
---|

51 | r = simd.max<128>(a,b); |
---|

52 | r = simd.umax<1>(a,b); |
---|

53 | r = simd.min<2>(a,b); |
---|

54 | r = simd.umin<4>(a,b); |
---|

55 | r = simd.sll<64>(a,b); |
---|

56 | r = simd.srl<64>(a,b); |
---|

57 | //r = simd.srai<32>(10,a); |
---|

58 | |
---|

59 | //r = simd.if<128>(a,b,c); |
---|

60 | |
---|

61 | } |
---|

62 | |
---|

63 | function void do_final_block() |
---|

64 | { |
---|

65 | |
---|

66 | |
---|

67 | } |
---|

68 | |
---|

69 | CarryDeclare(carry_set_0, 0, 0); |
---|

70 | }; |
---|

**Note:** See

TracBrowser
for help on using the repository browser.