1 //===----------------------Hexagon builtin routine ------------------------===//
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
7 //===----------------------------------------------------------------------===//
11 .macro FUNCTION_BEGIN name
15 .type \name, @function
19 .macro FUNCTION_END name
20 .size \name, . - \name
24 FUNCTION_BEGIN __hexagon_modsi3
49 if (!p0.new) r0 = sub(r0,r2)
55 if (!p0.new) r0 = sub(r0,r1)
62 FUNCTION_END __hexagon_modsi3
65 .set __qdsp_modsi3, __hexagon_modsi3