Lines Matching refs:model
38 int model) EXTERNAL_NAME(__atomic_load);
40 uint8_t __atomic_load_1(uint8_t *src, int model);
41 uint16_t __atomic_load_2(uint16_t *src, int model);
42 uint32_t __atomic_load_4(uint32_t *src, int model);
43 uint64_t __atomic_load_8(uint64_t *src, int model);
46 int model) EXTERNAL_NAME(__atomic_store);
48 void __atomic_store_1(uint8_t *dest, uint8_t val, int model);
49 void __atomic_store_2(uint16_t *dest, uint16_t val, int model);
50 void __atomic_store_4(uint32_t *dest, uint32_t val, int model);
51 void __atomic_store_8(uint64_t *dest, uint64_t val, int model);
54 int model) EXTERNAL_NAME(__atomic_exchange);
56 uint8_t __atomic_exchange_1(uint8_t *dest, uint8_t val, int model);
57 uint16_t __atomic_exchange_2(uint16_t *dest, uint16_t val, int model);
58 uint32_t __atomic_exchange_4(uint32_t *dest, uint32_t val, int model);
59 uint64_t __atomic_exchange_8(uint64_t *dest, uint64_t val, int model);
74 uint8_t __atomic_fetch_add_1(uint8_t *ptr, uint8_t val, int model);
75 uint16_t __atomic_fetch_add_2(uint16_t *ptr, uint16_t val, int model);
76 uint32_t __atomic_fetch_add_4(uint32_t *ptr, uint32_t val, int model);
77 uint64_t __atomic_fetch_add_8(uint64_t *ptr, uint64_t val, int model);
79 uint8_t __atomic_fetch_sub_1(uint8_t *ptr, uint8_t val, int model);
80 uint16_t __atomic_fetch_sub_2(uint16_t *ptr, uint16_t val, int model);
81 uint32_t __atomic_fetch_sub_4(uint32_t *ptr, uint32_t val, int model);
82 uint64_t __atomic_fetch_sub_8(uint64_t *ptr, uint64_t val, int model);
84 uint8_t __atomic_fetch_and_1(uint8_t *ptr, uint8_t val, int model);
85 uint16_t __atomic_fetch_and_2(uint16_t *ptr, uint16_t val, int model);
86 uint32_t __atomic_fetch_and_4(uint32_t *ptr, uint32_t val, int model);
87 uint64_t __atomic_fetch_and_8(uint64_t *ptr, uint64_t val, int model);
89 uint8_t __atomic_fetch_or_1(uint8_t *ptr, uint8_t val, int model);
90 uint16_t __atomic_fetch_or_2(uint16_t *ptr, uint16_t val, int model);
91 uint32_t __atomic_fetch_or_4(uint32_t *ptr, uint32_t val, int model);
92 uint64_t __atomic_fetch_or_8(uint64_t *ptr, uint64_t val, int model);
94 uint8_t __atomic_fetch_xor_1(uint8_t *ptr, uint8_t val, int model);
95 uint16_t __atomic_fetch_xor_2(uint16_t *ptr, uint16_t val, int model);
96 uint32_t __atomic_fetch_xor_4(uint32_t *ptr, uint32_t val, int model);
97 uint64_t __atomic_fetch_xor_8(uint64_t *ptr, uint64_t val, int model);
99 uint8_t __atomic_fetch_nand_1(uint8_t *ptr, uint8_t val, int model);
100 uint16_t __atomic_fetch_nand_2(uint16_t *ptr, uint16_t val, int model);
101 uint32_t __atomic_fetch_nand_4(uint32_t *ptr, uint32_t val, int model);
102 uint64_t __atomic_fetch_nand_8(uint64_t *ptr, uint64_t val, int model);
117 uint128_t __atomic_load_16(uint128_t *src, int model);
118 void __atomic_store_16(uint128_t *dest, uint128_t val, int model);
119 uint128_t __atomic_exchange_16(uint128_t *dest, uint128_t val, int model);
122 uint128_t __atomic_fetch_add_16(uint128_t *ptr, uint128_t val, int model);
123 uint128_t __atomic_fetch_sub_16(uint128_t *ptr, uint128_t val, int model);
124 uint128_t __atomic_fetch_and_16(uint128_t *ptr, uint128_t val, int model);
125 uint128_t __atomic_fetch_or_16(uint128_t *ptr, uint128_t val, int model);
126 uint128_t __atomic_fetch_xor_16(uint128_t *ptr, uint128_t val, int model);
127 uint128_t __atomic_fetch_nand_16(uint128_t *ptr, uint128_t val, int model);
191 int model = atomic_load_models[m]; in test_loads() local
196 __atomic_load_c(n, data, dst, model); in test_loads()
204 __atomic_load_c(n, data + 1, dst + 1, model); in test_loads()
210 if (__atomic_load_1(&a8, model) != U8(V + m)) in test_loads()
212 if (__atomic_load_2(&a16, model) != U16(V + m)) in test_loads()
214 if (__atomic_load_4(&a32, model) != U32(V + m)) in test_loads()
216 if (__atomic_load_8(&a64, model) != U64(V + m)) in test_loads()
219 if (__atomic_load_16(&a128, model) != V + m) in test_loads()
233 int model = atomic_store_models[m]; in test_stores() local
238 __atomic_store_c(n, dst, data, model); in test_stores()
246 __atomic_store_c(n, dst + 1, data + 1, model); in test_stores()
251 __atomic_store_1(&a8, U8(V + m), model); in test_stores()
254 __atomic_store_2(&a16, U16(V + m), model); in test_stores()
257 __atomic_store_4(&a32, U32(V + m), model); in test_stores()
260 __atomic_store_8(&a64, U64(V + m), model); in test_stores()
264 __atomic_store_16(&a128, V + m, model); in test_stores()
283 int model = atomic_exchange_models[m]; in test_exchanges() local
291 __atomic_exchange_c(n, dst, data, old, model); in test_exchanges()
304 __atomic_exchange_c(n, dst + 1, data + 1, old + 1, model); in test_exchanges()
311 if (__atomic_exchange_1(&a8, U8(V + m + 1), model) != U8(V + m)) in test_exchanges()
313 if (__atomic_exchange_2(&a16, U16(V + m + 1), model) != U16(V + m)) in test_exchanges()
315 if (__atomic_exchange_4(&a32, U32(V + m + 1), model) != U32(V + m)) in test_exchanges()
317 if (__atomic_exchange_8(&a64, U64(V + m + 1), model) != U64(V + m)) in test_exchanges()
320 if (__atomic_exchange_16(&a128, V + m + 1, model) != V + m) in test_exchanges()
437 int model = atomic_fetch_models[m]; in test_fetch_op() local
443 b8 = __atomic_fetch_add_1(&a8, U8(ONES), model); in test_fetch_op()
446 b16 = __atomic_fetch_add_2(&a16, U16(ONES), model); in test_fetch_op()
449 b32 = __atomic_fetch_add_4(&a32, U32(ONES), model); in test_fetch_op()
452 b64 = __atomic_fetch_add_8(&a64, U64(ONES), model); in test_fetch_op()
456 b128 = __atomic_fetch_add_16(&a128, ONES, model); in test_fetch_op()
465 b8 = __atomic_fetch_sub_1(&a8, U8(ONES), model); in test_fetch_op()
468 b16 = __atomic_fetch_sub_2(&a16, U16(ONES), model); in test_fetch_op()
471 b32 = __atomic_fetch_sub_4(&a32, U32(ONES), model); in test_fetch_op()
474 b64 = __atomic_fetch_sub_8(&a64, U64(ONES), model); in test_fetch_op()
478 b128 = __atomic_fetch_sub_16(&a128, ONES, model); in test_fetch_op()
487 b8 = __atomic_fetch_and_1(&a8, U8(V + m), model); in test_fetch_op()
490 b16 = __atomic_fetch_and_2(&a16, U16(V + m), model); in test_fetch_op()
493 b32 = __atomic_fetch_and_4(&a32, U32(V + m), model); in test_fetch_op()
496 b64 = __atomic_fetch_and_8(&a64, U64(V + m), model); in test_fetch_op()
500 b128 = __atomic_fetch_and_16(&a128, V + m, model); in test_fetch_op()
509 b8 = __atomic_fetch_or_1(&a8, U8(ONES), model); in test_fetch_op()
512 b16 = __atomic_fetch_or_2(&a16, U16(ONES), model); in test_fetch_op()
515 b32 = __atomic_fetch_or_4(&a32, U32(ONES), model); in test_fetch_op()
518 b64 = __atomic_fetch_or_8(&a64, U64(ONES), model); in test_fetch_op()
522 b128 = __atomic_fetch_or_16(&a128, ONES, model); in test_fetch_op()
531 b8 = __atomic_fetch_xor_1(&a8, U8(ONES), model); in test_fetch_op()
534 b16 = __atomic_fetch_xor_2(&a16, U16(ONES), model); in test_fetch_op()
537 b32 = __atomic_fetch_xor_4(&a32, U32(ONES), model); in test_fetch_op()
540 b64 = __atomic_fetch_xor_8(&a64, U64(ONES), model); in test_fetch_op()
544 b128 = __atomic_fetch_xor_16(&a128, ONES, model); in test_fetch_op()
553 b8 = __atomic_fetch_nand_1(&a8, U8(ONES), model); in test_fetch_op()
556 b16 = __atomic_fetch_nand_2(&a16, U16(ONES), model); in test_fetch_op()
559 b32 = __atomic_fetch_nand_4(&a32, U32(ONES), model); in test_fetch_op()
562 b64 = __atomic_fetch_nand_8(&a64, U64(ONES), model); in test_fetch_op()
566 b128 = __atomic_fetch_nand_16(&a128, ONES, model); in test_fetch_op()
574 __atomic_fetch_add_1(&a8, U8(V), model); in test_fetch_op()
577 __atomic_fetch_sub_1(&a8, U8(V), model); in test_fetch_op()
580 __atomic_fetch_add_2(&a16, U16(V), model); in test_fetch_op()
583 __atomic_fetch_sub_2(&a16, U16(V), model); in test_fetch_op()
586 __atomic_fetch_add_4(&a32, U32(V), model); in test_fetch_op()
589 __atomic_fetch_sub_4(&a32, U32(V), model); in test_fetch_op()
592 __atomic_fetch_add_8(&a64, U64(V), model); in test_fetch_op()
595 __atomic_fetch_sub_8(&a64, U64(V), model); in test_fetch_op()
599 __atomic_fetch_add_16(&a128, V, model); in test_fetch_op()
602 __atomic_fetch_sub_16(&a128, V, model); in test_fetch_op()