diff options
Diffstat (limited to 'src/math/abs_ppc64x.s')
-rw-r--r-- | src/math/abs_ppc64x.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/math/abs_ppc64x.s b/src/math/abs_ppc64x.s new file mode 100644 index 000000000..4fd86785a --- /dev/null +++ b/src/math/abs_ppc64x.s @@ -0,0 +1,14 @@ +// Copyright 2011 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 ppc64 ppc64le + +#include "textflag.h" + +TEXT ·Abs(SB),NOSPLIT,$0-16 + MOVD x+0(FP), R3 + MOVD $((1<<63)-1), R4 + AND R4, R3 + MOVD R3, ret+8(FP) + RETURN |