blob: bfa77eb491e151ba55f286a22a5005759322f3ad [file] [log] [blame]
Colin Cross7bb052a2015-02-03 12:59:37 -08001// 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#include "textflag.h"
6
7TEXT ·Abs(SB),NOSPLIT,$0
8 MOVW x_lo+0(FP), R0
9 MOVW x_hi+4(FP), R1
10 AND $((1<<31)-1), R1
11 MOVW R0, ret_lo+8(FP)
12 MOVW R1, ret_hi+12(FP)
13 RET