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 //===----------------------------------------------------------------------===//
10 .macro FUNCTION_BEGIN name
14 .type \name, @function
18 .macro FUNCTION_END name
19 .size \name, . - \name
23 FUNCTION_BEGIN __hexagon_udivmodsi4
46 if (!p0.new) r1 = sub(r1,r2)
47 if (!p0.new) r0 = add(r0,r3)
52 if (!p0.new) r1 = sub(r1,r4)
53 if (!p0.new) r0 = add(r0,r3)
56 FUNCTION_END __hexagon_udivmodsi4
58 .globl __qdsp_udivmodsi4
59 .set __qdsp_udivmodsi4, __hexagon_udivmodsi4