Lines Matching +full:16 +full:- +full:17

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * arch/alpha/lib/ev6-copy_user.S
5 * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com>
11 * Notably, we have to make sure that $0 is always up-to-date and
19 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html
21 * E - either cluster
22 * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1
23 * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1
31 .long 99b - .; \
32 lda $31, $exitin-99b($31); \
38 .long 99b - .; \
39 lda $31, $exitout-99b($31); \
54 and $16,7,$3 # .. .. .. E : is leading dest misalignment
59 * The fetcher stall also hides the 1 cycle cross-cluster stall for $3 (L --> U)
64 EXI( ldbu $1,0($17) ) # .. .. .. L : Keep loads separate from stores
65 addq $16,1,$16 # .. .. E .. : Section 3.8 in the CWG
70 * the -1 is to compensate for the inc($16) done in a previous quadpack
73 EXO( stb $1,-1($16) ) # .. .. .. L :
74 addq $17,1,$17 # .. .. E .. : Section 3.8 in the CWG
79 * If we fell through into here, we have a minimum of 33 - 7 bytes
83 and $17,7,$1 # .. .. .. E : Check _current_ source alignment
85 EXI( ldq_u $3,0($17) ) # .. L .. .. : Forward fetch for fallthrough code
89 * In the worst case, we've just executed an ldq_u here from 0($17)
93 /* Misaligned quadword loop - not unrolled. Leave it that way. */
95 EXI( ldq_u $2,8($17) ) # .. .. .. L :
97 extql $3,$17,$3 # .. U .. .. :
98 extqh $2,$17,$1 # U .. .. .. : U U L L
101 EXO( stq $1,0($16) ) # .. .. L .. :
102 addq $17,8,$17 # .. E .. .. :
105 addq $16,8,$16 # .. .. .. E :
116 EXI ( ldbu $2,0($17) ) # .. .. .. L : No loads in the same quad
117 addq $16,1,$16 # .. .. E .. : as the store (Section 3.8 in CWG)
123 * A minimum of (33 - 7) bytes to do a quad at a time.
125 * $0 - number of bytes to be moved
126 * $4 - number of bytes to move as quadwords
127 * $16 is current destination address
128 * $17 is current source address
146 EXI( ldq $1,0($17) ) # .. .. .. L
147 EXI( ldq $2,8($17) ) # .. .. L ..
151 addq $17,16,$17 # .. .. .. E
152 EXO( stq $1,0($16) ) # .. .. L ..
153 EXO( stq $2,8($16) ) # .. L .. ..
154 subq $0,16,$0 # E .. .. .. : U L L U
156 addq $16,16,$16 # .. .. .. E
157 EXI( ldq $1,0($17) ) # .. .. L ..
158 EXI( ldq $2,8($17) ) # .. L .. ..
161 EXO( stq $1,0($16) ) # .. .. .. L
162 EXO( stq $2,8($16) ) # .. .. L ..
163 subq $0,16,$0 # .. E .. ..
164 addq $17,16,$17 # E .. .. .. : U L L U
168 addq $16,16,$16 # .. E .. ..
177 EXI( ldq $1,0($17) )
179 addq $17,8,$17
182 EXO( stq $1,0($16) )
184 addq $16,8,$16
197 * $0 - remaining number of bytes left to copy
198 * $16 - current dest addr
199 * $17 - current source addr
203 EXI ( ldbu $2,0($17) ) # .. .. .. L : No loads in the same quad
204 addq $16,1,$16 # .. .. E .. : as the store (Section 3.8 in CWG)
210 * the -1 is to compensate for the inc($16) done in a previous quadpack
213 EXO ( stb $2,-1($16) ) # .. .. .. L :
214 addq $17,1,$17 # .. .. E .. : quadpack as the load