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_divsi3
37 #if (__HEXAGON_ARCH__ == 60)
67 if (!p0.new) r1 = sub(r1,r2)
68 if (!p0.new) r0 = add(r0,r3)
73 if (!p0.new) r0 = add(r0,r3)
80 FUNCTION_END __hexagon_divsi3
83 .set __qdsp_divsi3, __hexagon_divsi3