Lines Matching +full:xor +full:- +full:v2

1 // SPDX-License-Identifier: GPL-2.0-or-later
101 i, (i) - one, (i) - one); \
115 TEST(, add, +=, -one); in test_atomic()
116 TEST(, sub, -=, onestwos); in test_atomic()
117 TEST(, sub, -=, -one); in test_atomic()
120 TEST(, xor, ^=, v1); in test_atomic()
124 RETURN_FAMILY_TEST(, add_return, +=, -one); in test_atomic()
125 RETURN_FAMILY_TEST(, sub_return, -=, onestwos); in test_atomic()
126 RETURN_FAMILY_TEST(, sub_return, -=, -one); in test_atomic()
129 FETCH_FAMILY_TEST(, fetch_add, +=, -one); in test_atomic()
130 FETCH_FAMILY_TEST(, fetch_sub, -=, onestwos); in test_atomic()
131 FETCH_FAMILY_TEST(, fetch_sub, -=, -one); in test_atomic()
151 long long v2 = 0xfaceabadf00df001LL; in test_atomic64() local
167 TEST(64, add, +=, -one); in test_atomic64()
168 TEST(64, sub, -=, onestwos); in test_atomic64()
169 TEST(64, sub, -=, -one); in test_atomic64()
172 TEST(64, xor, ^=, v1); in test_atomic64()
176 RETURN_FAMILY_TEST(64, add_return, +=, -one); in test_atomic64()
177 RETURN_FAMILY_TEST(64, sub_return, -=, onestwos); in test_atomic64()
178 RETURN_FAMILY_TEST(64, sub_return, -=, -one); in test_atomic64()
181 FETCH_FAMILY_TEST(64, fetch_add, +=, -one); in test_atomic64()
182 FETCH_FAMILY_TEST(64, fetch_sub, -=, onestwos); in test_atomic64()
183 FETCH_FAMILY_TEST(64, fetch_sub, -=, -one); in test_atomic64()
197 r -= one; in test_atomic64()
204 CMPXCHG_FAMILY_TEST(64, v0, v1, v2); in test_atomic64()
216 BUG_ON(atomic64_dec_if_positive(&v) != (onestwos - 1)); in test_atomic64()
217 r -= one; in test_atomic64()
221 BUG_ON(atomic64_dec_if_positive(&v) != -one); in test_atomic64()
224 INIT(-one); in test_atomic64()
225 BUG_ON(atomic64_dec_if_positive(&v) != (-one - one)); in test_atomic64()
237 INIT(-one); in test_atomic64()
256 "x86-64", in test_atomics_init()