Lines Matching +full:0 +full:- +full:5
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * arch/alpha/lib/ev6-memset.S
8 * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com>
13 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html
15 * E - either cluster
16 * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1
17 * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1
41 .align 5
43 .frame $30,0,$26,0
44 .prologue 0
48 * undertake a major re-write to interleave the constant materialization
49 * with other parts of the fall-through code. This is important, even
55 bis $16,$16,$0 # E : return value
64 inswl $17,4,$5 # U : 0000chch00000000
69 or $2,$5,$2 # E : chchchch00000000
76 beq $3,aligned_b # U : target is 0mod8
81 ldq_u $4,0($16) # L : Fetch first partial
82 bis $16,$16,$5 # E : Save the address
92 stq_u $1,0($5) # L : Store result
105 bis $16,$16,$5 # E : Save dest address
113 * $5 A copy of $16
119 and $16, 0x3f, $2 # E : Forward work (only useful for unrolled loop)
121 subq $2, 0x40, $1 # E : bias counter (aligning stuff 0mod64)
126 * through unrolled loop. Do a quad at a time to get us 0mod64
136 stq $17, 0($5) # L :
139 addq $5, 8, $4 # E : Initial wh64 address (filler instruction)
143 addq $5, 8, $5 # E : Inc address
148 * $3 - number quads left to go
149 * $5 - target address (aligned 0mod64)
150 * $17 - mask of stuff to store
163 stq $17, 0($5) # L :
166 addq $5, 128, $4 # E : speculative target of next wh64
167 stq $17, 8($5) # L :
168 stq $17, 16($5) # L :
169 addq $5, 64, $7 # E : Fallback address for wh64 (== next trip addr)
171 stq $17, 24($5) # L :
172 stq $17, 32($5) # L :
176 stq $17, 40($5) # L :
177 stq $17, 48($5) # L :
181 stq $17, 56($5) # L :
182 addq $5, 64, $5 # E :
197 stq $17,0($5) # L :
199 addq $5,8,$5 # E : Inc address
204 * Write 0..7 trailing bytes.
208 ldq $7,0($5) # L :
213 stq $1,0($5) # L : And back to memory
217 ldq_u $1,0($16) # L :
225 stq_u $1,0($16) # L :
243 .frame $30,0,$26,0
244 .prologue 0
247 bis $16,$16,$0 # E : return value
254 beq $3,aligned # U : target is 0mod8
259 ldq_u $4,0($16) # L : Fetch first partial
260 bis $16,$16,$5 # E : Save the address
270 stq_u $1,0($5) # L : Store result
283 bis $16,$16,$5 # E : Save dest address
291 * $5 A copy of $16
297 and $16, 0x3f, $2 # E : Forward work (only useful for unrolled loop)
299 subq $2, 0x40, $1 # E : bias counter (aligning stuff 0mod64)
304 * through unrolled loop. Do a quad at a time to get us 0mod64
314 stq $17, 0($5) # L :
317 addq $5, 8, $4 # E : Initial wh64 address (filler instruction)
321 addq $5, 8, $5 # E : Inc address
326 * $3 - number quads left to go
327 * $5 - target address (aligned 0mod64)
328 * $17 - mask of stuff to store
341 stq $17, 0($5) # L :
344 addq $5, 128, $4 # E : speculative target of next wh64
345 stq $17, 8($5) # L :
346 stq $17, 16($5) # L :
347 addq $5, 64, $7 # E : Fallback address for wh64 (== next trip addr)
349 stq $17, 24($5) # L :
350 stq $17, 32($5) # L :
354 stq $17, 40($5) # L :
355 stq $17, 48($5) # L :
359 stq $17, 56($5) # L :
360 addq $5, 64, $5 # E :
375 stq $17,0($5) # L :
377 addq $5,8,$5 # E : Inc address
382 * Write 0..7 trailing bytes.
386 ldq $7,0($5) # L :
391 stq $1,0($5) # L : And back to memory
395 ldq_u $1,0($16) # L :
403 stq_u $1,0($16) # L :
417 .align 5
421 .frame $30,0,$26,0
422 .prologue 0
424 inswl $17,0,$5 # U : 000000000000c1c2
426 bis $16,$16,$0 # E : return value
434 or $2,$5,$2 # E : 00000000c1c2c1c2
442 beq $3,aligned_w # U : target is 0mod8
447 ldq_u $4,0($16) # L : Fetch first partial
448 bis $16,$16,$5 # E : Save the address
458 stq_u $1,0($5) # L : Store result
471 bis $16,$16,$5 # E : Save dest address
479 * $5 A copy of $16
485 and $16, 0x3f, $2 # E : Forward work (only useful for unrolled loop)
487 subq $2, 0x40, $1 # E : bias counter (aligning stuff 0mod64)
492 * through unrolled loop. Do a quad at a time to get us 0mod64
502 stq $17, 0($5) # L :
505 addq $5, 8, $4 # E : Initial wh64 address (filler instruction)
509 addq $5, 8, $5 # E : Inc address
514 * $3 - number quads left to go
515 * $5 - target address (aligned 0mod64)
516 * $17 - mask of stuff to store
529 stq $17, 0($5) # L :
532 addq $5, 128, $4 # E : speculative target of next wh64
533 stq $17, 8($5) # L :
534 stq $17, 16($5) # L :
535 addq $5, 64, $7 # E : Fallback address for wh64 (== next trip addr)
537 stq $17, 24($5) # L :
538 stq $17, 32($5) # L :
542 stq $17, 40($5) # L :
543 stq $17, 48($5) # L :
547 stq $17, 56($5) # L :
548 addq $5, 64, $5 # E :
563 stq $17,0($5) # L :
565 addq $5,8,$5 # E : Inc address
570 * Write 0..7 trailing bytes.
574 ldq $7,0($5) # L :
579 stq $1,0($5) # L : And back to memory
583 ldq_u $1,0($16) # L :
591 stq_u $1,0($16) # L :