Lines Matching defs:tok
52 next_instr(int tok)
56 ai->tok = tok;
89 tok2alu(int tok)
91 switch (tok) {
162 switch (ai->tok) {
187 assert(ai->tok != T_OP_MSB);
193 opc = tok2alu(ai->tok);
203 instr.alu.alu = tok2alu(ai->tok);
243 if (ai->tok == T_OP_CWRITE) {
245 } else if (ai->tok == T_OP_CREAD) {
247 } else if (ai->tok == T_OP_STORE) {
249 } else if (ai->tok == T_OP_LOAD) {
255 if (ai->tok == T_OP_CWRITE) {
257 } else if (ai->tok == T_OP_CREAD) {
259 } else if (ai->tok == T_OP_STORE || ai->tok == T_OP_LOAD) {
274 opc = (ai->tok == T_OP_BRNE) ? OPC_BRNEI : OPC_BREQI;
277 opc = (ai->tok == T_OP_BRNE) ? OPC_BRNEB : OPC_BREQB;