Lines Matching refs:arth
292 struct arth *a;
305 %type <a> arth narth
464 | arth relop arth { $$.b = gen_relation(cstate, $2, $1, $3, 0);
466 | arth irelop arth { $$.b = gen_relation(cstate, $2, $1, $3, 1);
684 arth: pnum { $$ = gen_loadi(cstate, $1); }
687 narth: pname '[' arth ']' { $$ = gen_load(cstate, $1, $3, 1); }
688 | pname '[' arth ':' NUM ']' { $$ = gen_load(cstate, $1, $3, $5); }
689 | arth '+' arth { $$ = gen_arth(cstate, BPF_ADD, $1, $3); }
690 | arth '-' arth { $$ = gen_arth(cstate, BPF_SUB, $1, $3); }
691 | arth '*' arth { $$ = gen_arth(cstate, BPF_MUL, $1, $3); }
692 | arth '/' arth { $$ = gen_arth(cstate, BPF_DIV, $1, $3); }
693 | arth '%' arth { $$ = gen_arth(cstate, BPF_MOD, $1, $3); }
694 | arth '&' arth { $$ = gen_arth(cstate, BPF_AND, $1, $3); }
695 | arth '|' arth { $$ = gen_arth(cstate, BPF_OR, $1, $3); }
696 | arth '^' arth { $$ = gen_arth(cstate, BPF_XOR, $1, $3); }
697 | arth LSH arth { $$ = gen_arth(cstate, BPF_LSH, $1, $3); }
698 | arth RSH arth { $$ = gen_arth(cstate, BPF_RSH, $1, $3); }
699 | '-' arth %prec UMINUS { $$ = gen_neg(cstate, $2); }