summaryrefslogtreecommitdiff
path: root/lib/builtins/hexagon/fmin_opt.S
blob: d043f1d7a6987a2e51f9fa01c4b66c5288926b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//===----------------------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 fminf
  {
    r0 = sfmin(r0, r1)
    jumpr r31
  }
FUNCTION_END fminf

  .globl fminl
  .set fminl, fmin