1 // Copyright 2011 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build ppc64 ppc64le 6 7 #include "textflag.h" 8 9 TEXT Abs(SB),NOSPLIT,$0-16 10 MOVD x+0(FP), R3 11 MOVD $((1<<63)-1), R4 12 AND R4, R3 13 MOVD R3, ret+8(FP) 14 RET 15