FreeBSD: add file descriptor tracking for _umtx_op
[valgrind.git] / none / tests / s390x / mul.c
blobf558ad3da691582e3f4d524da098064b1529db61
1 #include "mul.h"
2 #include "opcodes.h"
4 #define mhi(x, y) "mhi " x ", " y "\n"
5 #define mghi(x, y) "mghi " x ", " y "\n"
7 static void do_imm_insns(void)
9 immsweep(mhi, 0);
10 immsweep(mhi, -1);
11 immsweep(mhi, -32768);
12 immsweep(mhi, 32767);
13 immsweep(mghi, 0);
14 immsweep(mghi, -1);
15 immsweep(mghi, -32768);
16 immsweep(mghi, 32767);
19 #define m(x, y) "m " x ", " y "\n"
20 #define mr(x, y) "mr " x ", " y "\n"
21 #define mh(x, y) "mh " x ", " y "\n"
22 #define mlg(x, y) "mlg " x ", " y "\n"
23 #define mlgr(x, y) "mlgr " x ", " y "\n"
24 #define ml(x, y) "ml " x ", " y "\n"
25 #define mlr(x, y) "mlr " x ", " y "\n"
26 #define ms(x, y) "ms " x ", " y "\n"
27 #define msr(x, y) "msr " x ", " y "\n"
28 #define msg(x, y) "msg " x ", " y "\n"
29 #define msgr(x, y) "msgr " x ", " y "\n"
30 #define msgf(x, y) "msgf " x ", " y "\n"
31 #define msgfr(x, y) "msgfr " x ", " y "\n"
32 #define msy(x, y) "msy " x ", " y "\n"
34 static void do_regmem_insns(unsigned long m2)
36 rmemsweep(m, m2);
37 regsweep(mr, m2);
38 rmemsweep(mh, m2);
39 memsweep(mlg, m2);
40 regsweep(mlgr, m2);
41 memsweep(ml, m2);
42 regsweep(mlr, m2);
43 rmemsweep(ms, m2);
44 regsweep(msr, m2);
45 memsweep(msg, m2);
46 regsweep(msgr, m2);
47 memsweep(msgf, m2);
48 regsweep(msgfr, m2);
49 memsweep(msy, m2);
52 int main()
54 for_each_m2(do_regmem_insns);
55 do_imm_insns();