Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74968
b: refs/heads/master
c: fe4304b
h: refs/heads/master
v: v3
  • Loading branch information
Ivan Kokshaysky authored and Linus Torvalds committed Dec 18, 2007
1 parent 944fadb commit 6bd3adb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4dbed85a35ed37d9608f4f32e5d69efa775d6223
refs/heads/master: fe4304baf26e9580ada52e4579b1b7273434d8dd
14 changes: 7 additions & 7 deletions trunk/arch/alpha/lib/ev6-stxncpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,10 @@ $unaligned:

extql t2, a1, t2 # U :
cmpbge zero, t1, t8 # E : is there a zero?
andnot t2, t6, t12 # E : dest mask for a single word copy
andnot t2, t6, t2 # E : dest mask for a single word copy
or t8, t10, t5 # E : test for end-of-count too

cmpbge zero, t12, t3 # E :
cmpbge zero, t2, t3 # E :
cmoveq a2, t5, t8 # E : Latency=2, extra map slot
nop # E : keep with cmoveq
andnot t8, t3, t8 # E : (stall)
Expand All @@ -379,13 +379,13 @@ $unaligned:
negq t8, t6 # E : build bitmask of bytes <= zero
mskqh t1, t4, t1 # U :

and t6, t8, t2 # E :
subq t2, 1, t6 # E : (stall)
or t6, t2, t8 # E : (stall)
zapnot t12, t8, t12 # U : prepare source word; mirror changes (stall)
and t6, t8, t12 # E :
subq t12, 1, t6 # E : (stall)
or t6, t12, t8 # E : (stall)
zapnot t2, t8, t2 # U : prepare source word; mirror changes (stall)

zapnot t1, t8, t1 # U : to source validity mask
andnot t0, t12, t0 # E : zero place for source to reside
andnot t0, t2, t0 # E : zero place for source to reside
or t0, t1, t0 # E : and put it there (stall both t0, t1)
stq_u t0, 0(a0) # L : (stall)

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/alpha/lib/strncpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ strncpy:

or $3, $24, $3 # clear the bits between the last
or $4, $27, $4 # written byte and the last byte in COUNT
andnot $4, $3, $4
andnot $3, $4, $4
zap $1, $4, $1

stq_u $1, 0($16)
Expand Down
14 changes: 7 additions & 7 deletions trunk/arch/alpha/lib/stxncpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ $unaligned:

extql t2, a1, t2 # e0 :
cmpbge zero, t1, t8 # .. e1 : is there a zero?
andnot t2, t6, t12 # e0 : dest mask for a single word copy
andnot t2, t6, t2 # e0 : dest mask for a single word copy
or t8, t10, t5 # .. e1 : test for end-of-count too
cmpbge zero, t12, t3 # e0 :
cmpbge zero, t2, t3 # e0 :
cmoveq a2, t5, t8 # .. e1 :
andnot t8, t3, t8 # e0 :
beq t8, $u_head # .. e1 (zdb)
Expand All @@ -330,14 +330,14 @@ $unaligned:
ldq_u t0, 0(a0) # e0 :
negq t8, t6 # .. e1 : build bitmask of bytes <= zero
mskqh t1, t4, t1 # e0 :
and t6, t8, t2 # .. e1 :
subq t2, 1, t6 # e0 :
or t6, t2, t8 # e1 :
and t6, t8, t12 # .. e1 :
subq t12, 1, t6 # e0 :
or t6, t12, t8 # e1 :

zapnot t12, t8, t12 # e0 : prepare source word; mirror changes
zapnot t2, t8, t2 # e0 : prepare source word; mirror changes
zapnot t1, t8, t1 # .. e1 : to source validity mask

andnot t0, t12, t0 # e0 : zero place for source to reside
andnot t0, t2, t0 # e0 : zero place for source to reside
or t0, t1, t0 # e1 : and put it there
stq_u t0, 0(a0) # e0 :
ret (t9) # .. e1 :
Expand Down

0 comments on commit 6bd3adb

Please sign in to comment.