Lines Matching refs:m2
3 #define MUL_REG_MEM(insn, m1, m2) \
13 : "Q" (m2) \
15 printf(#insn " %16.16lX * %16.16lX = %16.16lX%16.16lX\n", m1, m2, tmp1, tmp2); \
18 #define MUL_REG_REG(insn, m1, m2) \
28 : "d" (m2) \
30 printf(#insn " %16.16lX * %16.16lX = %16.16lX%16.16lX\n", m1, m2, tmp1, tmp2); \
33 #define MUL_REG_IMM(insn, m1, m2) \
39 #insn " 2, " #m2 "\n" \
44 printf(#insn " %16.16lX * %16.16lX = %16.16lX%16.16lX\n", m1, (unsigned long) m2, tmp1, tmp2); \
47 #define MUL_REG_XIMM(insn, m1, um2, m2) \
53 insn(2,m2) \
58 printf(#insn " %16.16lX * %16.16lX = %16.16lX%16.16lX\n", m1, (unsigned long) 0x##um2##m2, tmp1, tmp2); \
62 #define memsweep(i, m2) \
64 MUL_REG_MEM(i, 0ul, m2); \
65 MUL_REG_MEM(i, 1ul, m2); \
66 MUL_REG_MEM(i, 0xfffful, m2); \
67 MUL_REG_MEM(i, 0x7ffful, m2); \
68 MUL_REG_MEM(i, 0x8000ul, m2); \
69 MUL_REG_MEM(i, 0xfffffffful, m2); \
70 MUL_REG_MEM(i, 0x80000000ul, m2); \
71 MUL_REG_MEM(i, 0x7ffffffful, m2); \
72 MUL_REG_MEM(i, 0xfffffffffffffffful, m2); \
73 MUL_REG_MEM(i, 0x8000000000000000ul, m2); \
74 MUL_REG_MEM(i, 0x7ffffffffffffffful, m2); \
77 #define regsweep(i, m2) \
79 MUL_REG_REG(i, 0ul, m2); \
80 MUL_REG_REG(i, 1ul, m2); \
81 MUL_REG_REG(i, 0xfffful, m2); \
82 MUL_REG_REG(i, 0x7ffful, m2); \
83 MUL_REG_REG(i, 0x8000ul, m2); \
84 MUL_REG_REG(i, 0xfffffffful, m2); \
85 MUL_REG_REG(i, 0x80000000ul, m2); \
86 MUL_REG_REG(i, 0x7ffffffful, m2); \
87 MUL_REG_REG(i, 0xfffffffffffffffful, m2); \
88 MUL_REG_REG(i, 0x8000000000000000ul, m2); \
89 MUL_REG_REG(i, 0x7ffffffffffffffful, m2); \
92 #define immsweep(i, m2) \
94 MUL_REG_IMM(i, 0ul, m2); \
95 MUL_REG_IMM(i, 1ul, m2); \
96 MUL_REG_IMM(i, 0xfffful, m2); \
97 MUL_REG_IMM(i, 0x7ffful, m2); \
98 MUL_REG_IMM(i, 0x8000ul, m2); \
99 MUL_REG_IMM(i, 0xfffffffful, m2); \
100 MUL_REG_IMM(i, 0x80000000ul, m2); \
101 MUL_REG_IMM(i, 0x7ffffffful, m2); \
102 MUL_REG_IMM(i, 0xfffffffffffffffful, m2); \
103 MUL_REG_IMM(i, 0x8000000000000000ul, m2); \
104 MUL_REG_IMM(i, 0x7ffffffffffffffful, m2); \
107 #define ximmsweep(i, um2, m2) \
109 MUL_REG_XIMM(i, 0ul, um2, m2); \
110 MUL_REG_XIMM(i, 1ul, um2, m2); \
111 MUL_REG_XIMM(i, 0xfffful, um2, m2); \
112 MUL_REG_XIMM(i, 0x7ffful, um2, m2); \
113 MUL_REG_XIMM(i, 0x8000ul, um2, m2); \
114 MUL_REG_XIMM(i, 0xfffffffful, um2, m2); \
115 MUL_REG_XIMM(i, 0x80000000ul, um2, m2); \
116 MUL_REG_XIMM(i, 0x7ffffffful, um2, m2); \
117 MUL_REG_XIMM(i, 0xfffffffffffffffful, um2, m2); \
118 MUL_REG_XIMM(i, 0x8000000000000000ul, um2, m2); \
119 MUL_REG_XIMM(i, 0x7ffffffffffffffful, um2, m2); \
122 #define MUL_MSY(m1, m2) \
126 register unsigned long *addr asm("5") = &m2; \
133 : "Q" (m2), "d" (addr) \
135 printf("msy %16.16lX * %16.16lX = %16.16lX%16.16lX\n", m1, m2, tmp1, tmp2); \
153 #define MUL_MHY(m1, m2) \
157 register unsigned long *addr asm("5") = &m2; \
164 : "Q" (m2), "d" (addr) \
166 printf("mhy %16.16lX * %16.16lX = %16.16lX%16.16lX\n", m1, m2, tmp1, tmp2); \
184 #define MUL_MFY(m1, m2) \
188 register unsigned long *addr asm("5") = &m2; \
195 : "Q" (m2), "d" (addr) \
197 printf("mfy %16.16lX * %16.16lX = %16.16lX%16.16lX\n", m1, m2, tmp1, tmp2); \