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 strncmp_zbb", 0, RISCV_ISA_EXT_ZBB, CONFIG_RISCV_ISA_ZBB)
15 * a0 - comparison result, value like strncmp
18 * a0 - string1
19 * a1 - string2
20 * a2 - number of characters to compare
34 bnez t0, 1b
41 * not necessarily -1, 0, +1
57 * a0 - comparison result, like strncmp
60 * a0 - string1
61 * a1 - string2
62 * a2 - number of characters to compare
69 li t5, -1
70 and t2, t2, SZREG-1
74 /* Adjust limit for fast-path. */
75 andi t6, t4, -SZREG
83 orc.b t3, t0
85 orc.b t3, t1
89 beq t0, t1, 1b
93 * word. Get bytes in big-endian order and compare.
100 /* Synthesize (t0 >= t1) ? 1 : -1 in a branchless sequence. */
126 bnez t0, 3b