Lines Matching +full:- +full:u

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * arch/alpha/lib/ev6-memchr.S
5 * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com>
9 * - memory accessed as aligned quadwords only
10 * - uses cmpbge to compare 8 bytes in parallel
11 * - does binary search to find 0 byte in last
18 * - only minimum number of quadwords may be accessed
19 * - the third argument is an unsigned long
24 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html
26 * E - either cluster
27 * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1
28 * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1
42 # Hack -- if someone passes in (size_t)-1, hoping to just
45 # that we will never have a 56-bit address space, cropping
47 zap $18, 0x80, $5 # U : Bound length
48 beq $18, $not_found # U :
50 and $17, 0xff, $17 # E : L L U U : 00000000000000ch
52 insbl $17, 1, $2 # U : 000000000000ch00
55 lda $3, -1($31) # E : U L L U
57 sll $17, 16, $2 # U : 00000000chch0000
60 sll $17, 32, $2 # U : U L L U : chchchch00000000
63 extql $1, $16, $7 # U : $7 is upper bits
64 beq $4, $first_quad # U :
65 ldq_u $6, -1($5) # L : L U U L : eight or less bytes to search Latency=3
67 extqh $6, $16, $6 # U : 2 cycle stall for $6
70 or $7, $6, $1 # E : L U L U $1 = quadword starting at $16
79 srl $3, $6, $6 # U : $6 = mask of $18 bits set
80 cmpbge $31, $1, $2 # E : L U L U
85 beq $2, $not_found # U : U L U L
96 ret # L0 : L U L U
110 addq $0, 2, $3 # E : U L U L : 2 cycle stall on $0
115 addq $0, 1, $3 # E : U L U L : 2 cycle stall on $0
120 ret # L0 : L U L U
128 insqh $3, $16, $2 # U : $2 = 0000ffffffffffff ($16<0:2> ff)
130 or $1, $2, $1 # E : U L U L $1 = ====ffffffffffff
133 bne $2, $found_it # U :
136 subq $5, 1, $18 # E : U L U L
143 beq $2, $final # U : U L U L
147 subq $18, $0, $4 # E : $4 <- nr quads to be processed
149 bne $4, $odd_quad_count # U :
151 mov $1, $4 # E : L U L U : move prefetched value to correct reg
158 bne $2, $found_it # U : U L U L
171 bne $2, $found_it # U :
176 bne $6, $unrolled_loop # U :
181 $final: subq $5, $0, $18 # E : $18 <- number of bytes left to do
184 bne $18, $last_quad # U :