summaryrefslogtreecommitdiff
path: root/lib/builtins/hexagon/fmax_opt.S
blob: f3a218c9769b3c9b7a0da2a87d0a1aa2c925dd80 (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
30
//===----------------------Hexagon builtin routine ------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

.macro FUNCTION_BEGIN name
.text
.p2align 5
.globl \name
.type  \name, @function
\name:
.endm

.macro FUNCTION_END name
.size  \name, . - \name
.endm

FUNCTION_BEGIN fmaxf
  {
    r0 = sfmax(r0, r1)
    jumpr r31
  }
FUNCTION_END fmaxf

  .globl fmaxl
  .set fmaxl, fmax