diff options
author | Austin Clements <austin@google.com> | 2014-10-27 17:17:06 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2014-10-27 17:17:06 -0400 |
commit | 87729004ae12c22611b6bccf42211cb1f712ddb0 (patch) | |
tree | 35f11e6f80feaa92f9f0b3f985a711d691d92665 /src/runtime/memclr_power64x.s | |
parent | e7797eae182f602d8d08d936f74257a93484d5fd (diff) | |
parent | fcceea1097e0f86dac0d71bd2fa0b37ab66d8143 (diff) | |
download | go-87729004ae12c22611b6bccf42211cb1f712ddb0.tar.gz |
[dev.power64] all: merge default into dev.power64
LGTM=rsc
R=rsc
CC=golang-codereviews
https://codereview.appspot.com/164110043
Diffstat (limited to 'src/runtime/memclr_power64x.s')
-rw-r--r-- | src/runtime/memclr_power64x.s | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/runtime/memclr_power64x.s b/src/runtime/memclr_power64x.s new file mode 100644 index 000000000..4a2437c20 --- /dev/null +++ b/src/runtime/memclr_power64x.s @@ -0,0 +1,20 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build power64 power64le + +#include "../../cmd/ld/textflag.h" + +// void runtime·memclr(void*, uintptr) +TEXT runtime·memclr(SB),NOSPLIT,$0-16 + MOVD ptr+0(FP), R3 + MOVD n+8(FP), R4 + CMP R4, $0 + BEQ done + SUB $1, R3 + MOVD R4, CTR + MOVBU R0, 1(R3) + BC 25, 0, -1(PC) // bdnz+ $-4 +done: + RETURN |