Lines Matching +full:- +full:- +full:cc

4  * SPDX-License-Identifier: GPL-2.0-or-later
16 * Each test starts with CC 0 and executes two chained ADD LOGICAL WITH
18 * with both 32- and 64-bit test functions.
22 { "cc0->cc0", {0, 0, 0}, 0, 0, },
23 { "cc0->cc1", {0, 0, 42}, 42, 1, },
24 /* cc0->cc2 is not possible */
25 /* cc0->cc3 is not possible */
26 /* cc1->cc0 is not possible */
27 { "cc1->cc1", {-3, 1, 1}, -1, 1, },
28 { "cc1->cc2", {-3, 1, 2}, 0, 2, },
29 { "cc1->cc3", {-3, 1, -1}, -3, 3, },
30 /* cc2->cc0 is not possible */
31 { "cc2->cc1", {-1, 1, 1}, 2, 1, },
32 { "cc2->cc2", {-1, 1, -1}, 0, 2, },
33 /* cc2->cc3 is not possible */
34 /* cc3->cc0 is not possible */
35 { "cc3->cc1", {-1, 2, 1}, 3, 1, },
36 { "cc3->cc2", {-1, 2, -2}, 0, 2, },
37 { "cc3->cc3", {-1, 2, -1}, 1, 3, },
42 unsigned long c, int *cc) in test32rm() argument
46 asm("xr %[cc],%[cc]\n" in test32rm()
49 "ipm %[cc]" in test32rm()
50 : [a] "+&r" (a32), [cc] "+&r" (*cc) in test32rm()
52 : "cc"); in test32rm()
53 *cc >>= 28; in test32rm()
60 unsigned long c, int *cc) in test32mr() argument
64 asm("xr %[cc],%[cc]\n" in test32mr()
67 "ipm %[cc]" in test32mr()
68 : [a] "+&r" (a32), [c] "+&r" (c32), [cc] "+&r" (*cc) in test32mr()
70 : "cc"); in test32mr()
71 *cc >>= 28; in test32mr()
78 unsigned long c, int *cc) in test64rm() argument
80 asm("xr %[cc],%[cc]\n" in test64rm()
83 "ipm %[cc]" in test64rm()
84 : [a] "+&r" (a), [cc] "+&r" (*cc) in test64rm()
86 : "cc"); in test64rm()
87 *cc >>= 28; in test64rm()
93 unsigned long c, int *cc) in test64mr() argument
95 asm("xr %[cc],%[cc]\n" in test64mr()
98 "ipm %[cc]" in test64mr()
99 : [a] "+&r" (a), [c] "+&r" (c), [cc] "+&r" (*cc) in test64mr()
101 : "cc"); in test64mr()
102 *cc >>= 28; in test64mr()
132 int cc; in main() local
140 a = t->values[p->a_idx]; in main()
141 b = t->values[p->b_idx]; in main()
142 c = t->values[p->c_idx]; in main()
143 sum = f->ptr(a, b, c, &cc); in main()
144 if (sum != t->exp_sum || cc != t->exp_cc) { in main()
146 … "[ FAILED ] %s %s(0x%lx, 0x%lx, 0x%lx) returned 0x%lx cc %d, expected 0x%lx cc %d\n", in main()
147 t->name, f->name, a, b, c, sum, cc, in main()
148 t->exp_sum, t->exp_cc); in main()