4 # define LDSTL(N, R0, R1) \
5 stxi_i $offui %R0 %R1 \
9 # define SI(C, N, x, X, R0) \
10 ldxi_##x %R0 %R0 $off##x \
11 beqi L##x##C %R0 L##X##N \
15 # define LDRL(C, N, R0, R1) \
20 # define LDSTL(C, R0, R1)
21 # define SI(C, N, x, X, R0) \
22 ldxi_##x %R0 %R0 $off##x \
23 beqi L##x##C %R0 I##X##N \
27 # define LDRL(C, N, R0, R1)
31 #define UI(C, N, x, X, R0) \
32 ldxi_u##x %R0 %R0 $offu##x \
33 beqi Lu##x##C %R0 X##N \
37 #define LDST1(X, N, R0, R1) \
40 stxi_c $offc %R0 %R1 \
41 stxi_c $offuc %R0 %R1 \
43 stxi_s $offs %R0 %R1 \
44 stxi_s $offus %R0 %R1 \
46 stxi_i $offi %R0 %R1 \
60 #define LDST0(R0, R1) \
61 LDST1(0_##R0##_##R1, 0, R0, R1) \
62 LDST1(1_##R0##_##R1, 1, R0, R1) \
63 LDST1(2_##R0##_##R1, 2, R0, R1) \
64 LDST1(3_##R0##_##R1, 3, R0, R1)
66 #define LDST(V0, V1, V2, R0, R1, R2) \
98 /* Simple test to simplify validating encodings before
99 * brute force tests */
103 stxi_c $offuc %r0 %r1
106 stxi_s $offus %r0 %r1
110 stxi_i $offui %r0 %r1
111 movi %r1 0x8000000000000001
119 ldxi_uc %r0 %r0 $offuc
129 ldxi_us %r0 %r0 $offus
140 ldxi_ui %r0 %r0 $offui
141 beqi Lui %r0 0x80000001
146 beqi Ll %r0 0x8000000000000001
151 LDST(v0, v1, v2, r0, r1, r2)
152 // just to know did not abort