Lines Matching refs:alu_op
395 u16 areg, enum alu_op op, u16 breg, bool swap, bool wr_both, in __emit_alu()
416 swreg lreg, enum alu_op op, swreg rreg) in emit_alu()
1265 wrp_alu_imm(struct nfp_prog *nfp_prog, u8 dst, enum alu_op alu_op, u32 imm) in wrp_alu_imm() argument
1269 if (alu_op == ALU_OP_AND) { in wrp_alu_imm()
1275 if (alu_op == ALU_OP_OR) { in wrp_alu_imm()
1281 if (alu_op == ALU_OP_XOR) { in wrp_alu_imm()
1290 emit_alu(nfp_prog, reg_both(dst), reg_a(dst), alu_op, tmp_reg); in wrp_alu_imm()
1295 enum alu_op alu_op, bool skip) in wrp_alu64_imm() argument
1305 wrp_alu_imm(nfp_prog, insn->dst_reg * 2, alu_op, imm & ~0U); in wrp_alu64_imm()
1306 wrp_alu_imm(nfp_prog, insn->dst_reg * 2 + 1, alu_op, imm >> 32); in wrp_alu64_imm()
1313 enum alu_op alu_op) in wrp_alu64_reg() argument
1317 emit_alu(nfp_prog, reg_both(dst), reg_a(dst), alu_op, reg_b(src)); in wrp_alu64_reg()
1319 reg_a(dst + 1), alu_op, reg_b(src + 1)); in wrp_alu64_reg()
1326 enum alu_op alu_op) in wrp_alu32_imm() argument
1331 wrp_alu_imm(nfp_prog, dst, alu_op, insn->imm); in wrp_alu32_imm()
1339 enum alu_op alu_op) in wrp_alu32_reg() argument
1343 emit_alu(nfp_prog, reg_both(dst), reg_a(dst), alu_op, reg_b(src)); in wrp_alu32_reg()
1350 wrp_test_reg_one(struct nfp_prog *nfp_prog, u8 dst, enum alu_op alu_op, u8 src, in wrp_test_reg_one() argument
1353 emit_alu(nfp_prog, reg_none(), reg_a(dst), alu_op, reg_b(src)); in wrp_test_reg_one()
1359 enum alu_op alu_op, enum br_mask br_mask) in wrp_test_reg() argument
1363 wrp_test_reg_one(nfp_prog, insn->dst_reg * 2, alu_op, in wrp_test_reg()
1366 wrp_test_reg_one(nfp_prog, insn->dst_reg * 2 + 1, alu_op, in wrp_test_reg()
1405 enum alu_op alu_op, carry_op; in cmp_imm() local
1413 alu_op = meta->jump_neg_op ? ALU_OP_ADD : ALU_OP_SUB; in cmp_imm()
1418 emit_alu(nfp_prog, reg_none(), reg_a(reg), alu_op, tmp_reg); in cmp_imm()
1420 emit_alu(nfp_prog, reg_none(), tmp_reg, alu_op, reg_a(reg)); in cmp_imm()