Duh, fix the align-to-32-bits code.
This commit is contained in:
parent
d85a7f8656
commit
2ffebceb85
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: memcmp.S,v 1.3 2003/10/14 07:51:45 scw Exp $ */
|
||||
/* $NetBSD: memcmp.S,v 1.4 2003/10/23 20:46:40 scw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2003 Wasabi Systems, Inc.
|
||||
@ -64,7 +64,7 @@
|
||||
|
||||
#include <machine/asm.h>
|
||||
|
||||
RCSID("$NetBSD: memcmp.S,v 1.3 2003/10/14 07:51:45 scw Exp $")
|
||||
RCSID("$NetBSD: memcmp.S,v 1.4 2003/10/23 20:46:40 scw Exp $")
|
||||
|
||||
ENTRY(memcmp)
|
||||
mov ip, r0
|
||||
@ -83,8 +83,8 @@ ENTRY(memcmp)
|
||||
bne .Lmemcmp_bytewise2 /* Badly aligned. Do it the slow way */
|
||||
|
||||
/* Word-align the addresses, if necessary */
|
||||
and r3, r1, #0x03
|
||||
rsbs r3, r3, #0x03
|
||||
sub r3, r1, #0x05
|
||||
ands r3, r3, #0x03
|
||||
add r3, r3, r3, lsl #1
|
||||
addne pc, pc, r3, lsl #3
|
||||
nop
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: memcmp.S,v 1.3 2003/10/13 19:59:24 scw Exp $ */
|
||||
/* $NetBSD: memcmp.S,v 1.4 2003/10/23 20:46:40 scw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2003 Wasabi Systems, Inc.
|
||||
@ -64,7 +64,7 @@
|
||||
|
||||
#include <machine/asm.h>
|
||||
|
||||
RCSID("$NetBSD: memcmp.S,v 1.3 2003/10/13 19:59:24 scw Exp $")
|
||||
RCSID("$NetBSD: memcmp.S,v 1.4 2003/10/23 20:46:40 scw Exp $")
|
||||
|
||||
ENTRY(memcmp)
|
||||
mov ip, r0
|
||||
@ -83,8 +83,8 @@ ENTRY(memcmp)
|
||||
bne .Lmemcmp_bytewise2 /* Badly aligned. Do it the slow way */
|
||||
|
||||
/* Word-align the addresses, if necessary */
|
||||
and r3, r1, #0x03
|
||||
rsbs r3, r3, #0x03
|
||||
sub r3, r1, #0x05
|
||||
ands r3, r3, #0x03
|
||||
add r3, r3, r3, lsl #1
|
||||
addne pc, pc, r3, lsl #3
|
||||
nop
|
||||
|
Loading…
Reference in New Issue
Block a user