Fix issue with dst bias in memset
This patch fixes an issue in the previous memset loop change. If the zva size is >= 256 and there are more than 64 bytes left in the tail, we could enter the loop and thus need to rebias dst by 32 as well. Since no known CPUs use this size this can't be tested natively, so I've tested it on a simulator initialized with a large zva size. --
This commit is contained in:
parent
bba82041b2
commit
df7824d1a4
|
@ -233,6 +233,7 @@ L(zva_other):
|
||||||
subs count, count, zva_len
|
subs count, count, zva_len
|
||||||
b.hs 3b
|
b.hs 3b
|
||||||
4: add count, count, zva_len
|
4: add count, count, zva_len
|
||||||
|
sub dst, dst, 32 /* Bias dst for tail loop. */
|
||||||
b L(tail64)
|
b L(tail64)
|
||||||
|
|
||||||
.size memset, . - memset
|
.size memset, . - memset
|
||||||
|
|
Loading…
Reference in New Issue