-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathadd-op-aliases.h
29 lines (24 loc) · 1.06 KB
/
add-op-aliases.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
static inline jit_op *jit_add_op_trr(struct jit *jit, unsigned short op, jit_value a, jit_value b)
{
return jit_add_op(jit, op, SPEC(TREG, REG, NO), a, b, 0, 0, NULL);
}
static inline jit_op *jit_add_op_tri(struct jit *jit, unsigned short op, jit_value a, jit_value b)
{
return jit_add_op(jit, op, SPEC(TREG, IMM, NO), a, b, 0, 0, NULL);
}
static inline jit_op *jit_add_op_trrr(struct jit *jit, unsigned short op, jit_value a, jit_value b, jit_value c)
{
return jit_add_op(jit, op, SPEC(TREG, REG, REG), a, b, c, 0, NULL);
}
static inline jit_op *jit_add_op_trri(struct jit *jit, unsigned short op, jit_value a, jit_value b, jit_value c)
{
return jit_add_op(jit, op, SPEC(TREG, REG, IMM), a, b, c, 0, NULL);
}
static inline jit_op *jit_add_op_irr(struct jit *jit, unsigned short op, jit_value a, jit_value b, jit_value c)
{
return jit_add_op(jit, op, SPEC(IMM, REG, REG), a, b, c, 0, NULL);
}
static inline jit_op *jit_add_op_iri(struct jit *jit, unsigned short op, jit_value a, jit_value b, jit_value c)
{
return jit_add_op(jit, op, SPEC(IMM, REG, IMM), a, b, c, 0, NULL);
}