blob: 6bf9b84b3d209c72ae3f33f6e01f8a6d3f5bbfcc [file] [log] [blame]
//===----------------------Hexagon builtin routine ------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
.macro FUNCTION_BEGIN name
.text
.p2align 5
.globl \name
.type \name, @function
\name:
.endm
.macro FUNCTION_END name
.size \name, . - \name
.endm
FUNCTION_BEGIN fabs
{
r1 = clrbit(r1, #31)
jumpr r31
}
FUNCTION_END fabs
FUNCTION_BEGIN fabsf
{
r0 = clrbit(r0, #31)
jumpr r31
}
FUNCTION_END fabsf
.globl fabsl
.set fabsl, fabs