1 //===----------------------Hexagon builtin routine ------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 .macro FUNCTION_BEGIN name
16 .type \name, @function
20 .macro FUNCTION_END name
21 .size \name, . - \name
25 FUNCTION_BEGIN __hexagon_divsi3
38 #if (__HEXAGON_ARCH__ == 60)
68 if (!p0.new) r1 = sub(r1,r2)
69 if (!p0.new) r0 = add(r0,r3)
74 if (!p0.new) r0 = add(r0,r3)
81 FUNCTION_END __hexagon_divsi3
84 .set __qdsp_divsi3, __hexagon_divsi3