Lines Matching +full:alternative +full:- +full:b
1 /* SPDX-License-Identifier: GPL-2.0-only */
5 #include <asm/alternative-macros.h>
11 ALTERNATIVE("nop", "j strcmp_zbb", 0, RISCV_ISA_EXT_ZBB, CONFIG_RISCV_ISA_ZBB)
15 * a0 - comparison result, value like strcmp
18 * a0 - string1
19 * a1 - string2
30 bnez t0, 1b
36 * not necessarily -1, 0, +1
54 * a0 - comparison result, value like strcmp
57 * a0 - string1
58 * a1 - string2
65 li t4, -1
66 and t2, t2, SZREG-1
74 orc.b t3, t0
78 beq t0, t1, 1b
82 * word. Get bytes in big-endian order and compare.
89 /* Synthesize (t0 >= t1) ? 1 : -1 in a branchless sequence. */
114 bnez t0, 3b