Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 Space after comma in operands. Same object...
details: https://anonhg.NetBSD.org/src/rev/ea8af64330cb
branches: trunk
changeset: 1023617:ea8af64330cb
user: uwe <uwe%NetBSD.org@localhost>
date: Sat Sep 18 14:57:10 2021 +0000
description:
Space after comma in operands. Same object code is generated.
diffstat:
sys/arch/sh3/sh3/cpu_in_cksum.S | 126 ++++++++++++++++++++--------------------
1 files changed, 63 insertions(+), 63 deletions(-)
diffs (274 lines):
diff -r 19b23ad28557 -r ea8af64330cb sys/arch/sh3/sh3/cpu_in_cksum.S
--- a/sys/arch/sh3/sh3/cpu_in_cksum.S Sat Sep 18 14:24:04 2021 +0000
+++ b/sys/arch/sh3/sh3/cpu_in_cksum.S Sat Sep 18 14:57:10 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_in_cksum.S,v 1.7 2021/09/18 06:32:41 rin Exp $ */
+/* $NetBSD: cpu_in_cksum.S,v 1.8 2021/09/18 14:57:10 uwe Exp $ */
/*-
* Copyright (c) 2000 SHIMIZU Ryo <ryo%misakimix.org@localhost>
@@ -34,7 +34,7 @@
#include <machine/asm.h>
#include "assym.h"
-__KERNEL_RCSID(0, "$NetBSD: cpu_in_cksum.S,v 1.7 2021/09/18 06:32:41 rin Exp $")
+__KERNEL_RCSID(0, "$NetBSD: cpu_in_cksum.S,v 1.8 2021/09/18 14:57:10 uwe Exp $")
#define reg_tmp0 r0
@@ -49,45 +49,45 @@
#define REDUCE \
- swap.w reg_sum,reg_tmp0 ; \
- extu.w reg_sum,reg_sum ; \
- extu.w reg_tmp0,reg_tmp0 ; \
- add reg_tmp0,reg_sum
+ swap.w reg_sum, reg_tmp0 ; \
+ extu.w reg_sum, reg_sum ; \
+ extu.w reg_tmp0, reg_tmp0 ; \
+ add reg_tmp0, reg_sum
#define ROL \
shll8 reg_sum
#if _BYTE_ORDER == BIG_ENDIAN
#define ADDB \
- mov.b @reg_w+,reg_tmp0 ; \
+ mov.b @reg_w+, reg_tmp0 ; \
ROL ; \
- extu.b reg_tmp0,reg_tmp0 ; \
- add reg_tmp0,reg_sum ; \
- not reg_byte_swapped,reg_byte_swapped
+ extu.b reg_tmp0, reg_tmp0 ; \
+ add reg_tmp0, reg_sum ; \
+ not reg_byte_swapped, reg_byte_swapped
#else
#define ADDB \
- mov.b @reg_w+,reg_tmp0 ; \
- extu.b reg_tmp0,reg_tmp0 ; \
- add reg_tmp0,reg_sum ; \
+ mov.b @reg_w+, reg_tmp0 ; \
+ extu.b reg_tmp0, reg_tmp0 ; \
+ add reg_tmp0, reg_sum ; \
ROL ; \
- not reg_byte_swapped,reg_byte_swapped
+ not reg_byte_swapped, reg_byte_swapped
#endif
#define ADDS \
- mov.w @reg_w+,reg_tmp0 ; \
- extu.w reg_tmp0,reg_tmp0 ; \
- add reg_tmp0,reg_sum
+ mov.w @reg_w+, reg_tmp0 ; \
+ extu.w reg_tmp0, reg_tmp0 ; \
+ add reg_tmp0, reg_sum
#define ADDCL \
- mov.l @reg_w+,reg_tmp0 ; \
- addc reg_tmp0,reg_sum
+ mov.l @reg_w+, reg_tmp0 ; \
+ addc reg_tmp0, reg_sum
#define FORWARD1 \
- add #-1,reg_mlen
+ add #-1, reg_mlen
#define FORWARD2 \
- add #-2,reg_mlen
+ add #-2, reg_mlen
/*
@@ -97,7 +97,7 @@
* LINTSTUB: Func: int cpu_in_cksum(struct mbuf *m, int len, int off, uint32_t initial_sum);
*/
ENTRY(cpu_in_cksum)
- sts.l pr,@-sp
+ sts.l pr, @-sp
PIC_PROLOGUE(.L_got)
tst reg_len, reg_len
@@ -128,13 +128,13 @@
mbuf_loop:
- tst reg_m,reg_m
+ tst reg_m, reg_m
bt out_of_mbufs
- mov.l @(M_LEN,reg_m),reg_mlen
- tst reg_mlen,reg_mlen
+ mov.l @(M_LEN, reg_m), reg_mlen
+ tst reg_mlen, reg_mlen
bt/s mbuf_loop_continue
- mov.l @(M_DATA,reg_m),reg_w
+ mov.l @(M_DATA, reg_m), reg_w
!! Entry point for mbuf loop. We jump here after we have
@@ -142,15 +142,15 @@
!! offset. reg_mlen and reg_w were adjusted to point at the
!! first interesting byte of data.
.L_mbuf_loop_enter:
- cmp/ge reg_mlen,reg_len
+ cmp/ge reg_mlen, reg_len
bt 1f
- mov reg_len,reg_mlen
+ mov reg_len, reg_mlen
1:
- sub reg_mlen,reg_len
+ sub reg_mlen, reg_len
- mov reg_w,reg_tmp0
- tst #1,reg_tmp0
+ mov reg_w, reg_tmp0
+ tst #1, reg_tmp0
bt/s 1f
REDUCE /* 1st instruction break only reg_tmp0(r0) */
ADDB
@@ -158,11 +158,11 @@
1:
- mov #1,reg_tmp0
- cmp/gt reg_tmp0,reg_mlen
+ mov #1, reg_tmp0
+ cmp/gt reg_tmp0, reg_mlen
bf/s 1f
- mov reg_w,reg_tmp0
- tst #2,reg_tmp0
+ mov reg_w, reg_tmp0
+ tst #2, reg_tmp0
bt/s 1f
REDUCE /* 1st instruction break only reg_tmp0(r0) */
ADDS
@@ -171,16 +171,16 @@
- mov #127,reg_tmp0
- cmp/hi reg_tmp0,reg_mlen
+ mov #127, reg_tmp0
+ cmp/hi reg_tmp0, reg_mlen
bf 1f
do_cksum128:
bsr cksum128
nop
- mov #127,reg_tmp0
- cmp/hi reg_tmp0,reg_mlen
+ mov #127, reg_tmp0
+ cmp/hi reg_tmp0, reg_mlen
bt do_cksum128
1:
@@ -190,29 +190,29 @@
REDUCE
- mov #1,reg_tmp0
- cmp/gt reg_tmp0,reg_mlen
+ mov #1, reg_tmp0
+ cmp/gt reg_tmp0, reg_mlen
bf 1f
ADDS
FORWARD2
1:
- mov reg_mlen,r0
- tst #1,r0
+ mov reg_mlen, r0
+ tst #1, r0
bt 1f
ADDB
1:
mbuf_loop_continue:
- mov.l @(M_NEXT,reg_m),reg_m
+ mov.l @(M_NEXT, reg_m), reg_m
- tst reg_len,reg_len
+ tst reg_len, reg_len
bf/s mbuf_loop
mbuf_loop_done:
- tst reg_byte_swapped,reg_byte_swapped
+ tst reg_byte_swapped, reg_byte_swapped
bt/s 1f
REDUCE /* 1st instruction break only reg_tmp0(r0) */
ROL
@@ -222,24 +222,24 @@
REDUCE
in_cksum_return:
- not reg_sum,r0
+ not reg_sum, r0
PIC_EPILOGUE
- lds.l @sp+,pr
+ lds.l @sp+, pr
rts
- extu.w r0,r0
+ extu.w r0, r0
out_of_mbufs:
- mova .L_message_out_of_data,reg_tmp0
- mov.l .L_printf,reg_tmp3
+ mova .L_message_out_of_data, reg_tmp0
+ mov.l .L_printf, reg_tmp3
- mov.l reg_sum,@-sp /* save: call clobbered register */
+ mov.l reg_sum, @-sp /* save: call clobbered register */
1: CALL reg_tmp3
- mov reg_tmp0,r4
+ mov reg_tmp0, r4
bra in_cksum_return
- mov.l @sp+,reg_sum /* restore */
+ mov.l @sp+, reg_sum /* restore */
.align 2
.L_got:
@@ -256,19 +256,19 @@
.align 2
cksum128mod:
- mov reg_mlen,reg_tmp0
- and #124,reg_tmp0
- sub reg_tmp0,reg_mlen
- mov reg_tmp0,reg_tmp3
+ mov reg_mlen, reg_tmp0
+ and #124, reg_tmp0
+ sub reg_tmp0, reg_mlen
+ mov reg_tmp0, reg_tmp3
- mova cksum128_tail,reg_tmp0
- sub reg_tmp3,reg_tmp0
+ mova cksum128_tail, reg_tmp0
+ sub reg_tmp3, reg_tmp0
jmp @reg_tmp0
clrt
.align 2
cksum128:
- add #-128,reg_mlen
+ add #-128, reg_mlen
clrt
cksum128_unroll:
@@ -305,6 +305,6 @@
ADDCL
ADDCL
cksum128_tail:
- mov #0,reg_tmp0
+ mov #0, reg_tmp0
rts
- addc reg_tmp0,reg_sum
+ addc reg_tmp0, reg_sum
Home |
Main Index |
Thread Index |
Old Index