]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/compiler-rt/lib/builtins/hexagon/fabs_opt.S
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm-project / compiler-rt / lib / builtins / hexagon / fabs_opt.S
1 //===----------------------Hexagon builtin routine ------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 .macro FUNCTION_BEGIN name
10 .text
11 .p2align 5
12 .globl \name
13 .type  \name, @function
14 \name:
15 .endm
16
17 .macro FUNCTION_END name
18 .size  \name, . - \name
19 .endm
20
21 FUNCTION_BEGIN fabs
22   {
23     r1 = clrbit(r1, #31)
24     jumpr r31
25   }
26 FUNCTION_END fabs
27
28 FUNCTION_BEGIN fabsf
29   {
30     r0 = clrbit(r0, #31)
31     jumpr r31
32   }
33 FUNCTION_END fabsf
34
35   .globl fabsl
36   .set fabsl, fabs