diff options
author | 2011-09-19 10:50:10 +0000 | |
---|---|---|
committer | 2011-09-19 10:50:10 +0000 | |
commit | 12a54046b370dda32a5478ba05e3b8b6d9cbb07c (patch) | |
tree | 0038e9fcc2720f1b8252e576664c084bddd28ec8 /sys/lib/libkern/arch | |
parent | Sync with reality: remove %r and %z which have been removed quite some time (diff) | |
download | wireguard-openbsd-12a54046b370dda32a5478ba05e3b8b6d9cbb07c.tar.xz wireguard-openbsd-12a54046b370dda32a5478ba05e3b8b6d9cbb07c.zip |
Avoid sign-extension when extracting the low bits of addresses when checking
if the addresses are 4-byte aligned.
ok jsing@
Diffstat (limited to 'sys/lib/libkern/arch')
-rw-r--r-- | sys/lib/libkern/arch/hppa64/bcopy.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/lib/libkern/arch/hppa64/bcopy.m4 b/sys/lib/libkern/arch/hppa64/bcopy.m4 index 1dc5a02667b..d32cddca2f6 100644 --- a/sys/lib/libkern/arch/hppa64/bcopy.m4 +++ b/sys/lib/libkern/arch/hppa64/bcopy.m4 @@ -1,4 +1,4 @@ -define(_rcsid,``$OpenBSD: bcopy.m4,v 1.6 2011/04/14 13:52:29 jsing Exp $'')dnl +define(_rcsid,``$OpenBSD: bcopy.m4,v 1.7 2011/09/19 10:50:10 kettenis Exp $'')dnl dnl dnl dnl This is the source file for bcopy.S, spcopy.S @@ -123,8 +123,8 @@ define(`E', `e')dnl ifelse($7,`-', `', `0',`0', ` comib,>=,n 15, $6, L($1, byte) - extrd $3, 63, 2, %r20 - extrd $5, 63, 2, %r19 + extrd,u $3, 63, 2, %r20 + extrd,u $5, 63, 2, %r19 add $6, %r19, $6 comb,<> %r20, %r19, L($1, unaligned) depd %r0, 63, 2, $3 |