memcmp.S (e5451c8f8330e03ad3cfa16048b4daf961af434f) memcmp.S (86effd0dc675c36caed7b954d7f4f63b77c353b5)
1/*
2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9#include <linux/linkage.h>
10
11#ifdef __LITTLE_ENDIAN__
12#define WORD2 r2
13#define SHIFT r3
14#else /* BIG ENDIAN */
15#define WORD2 r3
16#define SHIFT r2
17#endif
18
1/*
2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9#include <linux/linkage.h>
10
11#ifdef __LITTLE_ENDIAN__
12#define WORD2 r2
13#define SHIFT r3
14#else /* BIG ENDIAN */
15#define WORD2 r3
16#define SHIFT r2
17#endif
18
19ENTRY(memcmp)
19ENTRY_CFI(memcmp)
20 or r12,r0,r1
21 asl_s r12,r12,30
22 sub r3,r2,1
23 brls r2,r12,.Lbytewise
24 ld r4,[r0,0]
25 ld r5,[r1,0]
26 lsr.f lp_count,r3,3
27#ifdef CONFIG_ISA_ARCV2

--- 116 unchanged lines hidden (view full) ---

144 j_s.d [blink]
145 sub r0,r3,r12
146.Lbyte_even:
147 j_s.d [blink]
148 sub r0,r4,r5
149.Lnil:
150 j_s.d [blink]
151 mov r0,0
20 or r12,r0,r1
21 asl_s r12,r12,30
22 sub r3,r2,1
23 brls r2,r12,.Lbytewise
24 ld r4,[r0,0]
25 ld r5,[r1,0]
26 lsr.f lp_count,r3,3
27#ifdef CONFIG_ISA_ARCV2

--- 116 unchanged lines hidden (view full) ---

144 j_s.d [blink]
145 sub r0,r3,r12
146.Lbyte_even:
147 j_s.d [blink]
148 sub r0,r4,r5
149.Lnil:
150 j_s.d [blink]
151 mov r0,0
152END(memcmp)
152END_CFI(memcmp)