Lines Matching full:1

28 	asm volatile ("1:"  in spin_lock()
31 "bne 1b;" in spin_lock()
32 "stwcx. %1,0,%2;" in spin_lock()
33 "bne- 1b;" in spin_lock()
35 : "=&r"(old) : "r"(1), "r"(lock) : "cr0", "memory"); in spin_lock()
41 "stw %1,%0;" in spin_unlock()
63 asm volatile ("1:" in test_lwarx_stwcx()
65 "stwcx. %1,0,%2;" in test_lwarx_stwcx()
66 "bne- 1b;" in test_lwarx_stwcx()
67 : "=&r"(old) : "r"(1), "r"(var) : "cr0", "memory"); in test_lwarx_stwcx()
68 report(old == 0 && *var == 1, "simple update"); in test_lwarx_stwcx()
72 "stwcx. %1,0,%2;" in test_lwarx_stwcx()
73 "stwcx. %1,0,%2;" in test_lwarx_stwcx()
74 "bne- 1f;" in test_lwarx_stwcx()
75 "li %0,1;" in test_lwarx_stwcx()
76 "1:" in test_lwarx_stwcx()
78 : "r"(1), "r"(var) : "cr0", "memory"); in test_lwarx_stwcx()
83 "lwarx %1,0,%4;" in test_lwarx_stwcx()
86 "bne- 1f;" in test_lwarx_stwcx()
87 "li %0,1;" in test_lwarx_stwcx()
88 "1:" in test_lwarx_stwcx()
90 : "r"(1), "r"(2), "r"(var) : "cr0", "memory"); in test_lwarx_stwcx()
104 "lwarx %0,0,%1;" in test_lwarx_stwcx()
105 : "+&r"(old) : "r"((char *)var + 1)); in test_lwarx_stwcx()
120 "stwcx. %1,0,%3;" in test_lwarx_stwcx()
121 : "=&r"(old) : "r"(1), "r"(var), "r"((char *)var+1) in test_lwarx_stwcx()
156 var.var1 = 1; in test_lqarx_stqcx()
166 asm volatile ("1:" in test_lqarx_stqcx()
169 "bne- 1b;" in test_lqarx_stqcx()
174 report(old1 == 2 && old2 == 1 && var.var1 == 4 && var.var2 == 3, in test_lqarx_stqcx()
177 var.var1 = 1; in test_lqarx_stqcx()
182 "stqcx. %1,0,%3;" in test_lqarx_stqcx()
183 "stqcx. %1,0,%3;" in test_lqarx_stqcx()
184 "bne- 1f;" in test_lqarx_stqcx()
185 "li %0,1;" in test_lqarx_stqcx()
186 "1:" in test_lqarx_stqcx()
190 report(result == 0 && var.var1 == 1 && var.var2 == 2, in test_lqarx_stqcx()
193 var.var1 = 1; in test_lqarx_stqcx()
198 "lqarx %1,0,%6;" in test_lqarx_stqcx()
201 "bne- 1f;" in test_lqarx_stqcx()
202 "li %0,1;" in test_lqarx_stqcx()
203 "1:" in test_lqarx_stqcx()
226 asm volatile ("lwarx %0,0,%1" : "=&r"(old) : "r"(var) : "memory"); in test_migrate_reserve()
228 asm volatile ("stwcx. %0,0,%1" : : "r"(0xf00d), "r"(var) : "cr0", "memory"); in test_migrate_reserve()
255 __atomic_fetch_add(&test_counter, 1, __ATOMIC_RELAXED); in test_inc_perf()
262 __atomic_fetch_add(&test_counter, 1, __ATOMIC_SEQ_CST); in test_inc_perf()
292 while (smp_inc_started < nr_cpus_present - 1) in test_smp_inc()
332 while (smp_lock_started < nr_cpus_present - 1) in test_smp_lock()
362 all = argc == 1 || !strcmp(argv[1], "all"); in main()
364 for (i = 1; i < argc; i++) { in main()
376 if (all || strcmp(argv[1], hctests[i].name) == 0) { in main()