summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-07-01 08:45:04 -0700
committerSteve Kondik <steve@cyngn.com>2016-07-01 08:45:04 -0700
commit0a143d038f08d595d2678839e7f5f5dafc92c78d (patch)
treed422b104f88d021c078d22c5bdb0c43765b83e71 /libc
parent02972e7101291409121a085b104d3f7451a2e1d7 (diff)
downloadbionic-0a143d038f08d595d2678839e7f5f5dafc92c78d.zip
bionic-0a143d038f08d595d2678839e7f5f5dafc92c78d.tar.gz
bionic-0a143d038f08d595d2678839e7f5f5dafc92c78d.tar.bz2
libc: Fix invalid offset warning with Clang
Change-Id: I71274a6f592356a259ccdbe9c09383bc75e2d26b
Diffstat (limited to 'libc')
-rw-r--r--libc/arch-arm64/kryo/bionic/memcpy_base.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/arch-arm64/kryo/bionic/memcpy_base.S b/libc/arch-arm64/kryo/bionic/memcpy_base.S
index 0096bb7..ee0757d 100644
--- a/libc/arch-arm64/kryo/bionic/memcpy_base.S
+++ b/libc/arch-arm64/kryo/bionic/memcpy_base.S
@@ -170,8 +170,8 @@ kryo_bb_prime_pump:
add x10, x1, #(PLDOFFS*PLDSIZE)
bic x10, x10, #0x7F
sub x12, x12, #PLDOFFS
- prfm PLDL1KEEP, [x10, #(-1*PLDSIZE)]
- prfm PLDL1KEEP, [x10, #(-1*PLDSIZE+64)]
+ prfm PLDL1KEEP, [x10, #((PLDOFFS-1)*PLDSIZE)]
+ prfm PLDL1KEEP, [x10, #((PLDOFFS-1)*PLDSIZE)+64]
cmp x12, #(448*1024/128)
bhi kryo_bb_copy_128_loop_ddr