1 //===-- sync_fetch_and_sub_8.S - ------------------------------------------===//
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 //===----------------------------------------------------------------------===//
9 // This file implements the __sync_fetch_and_sub_8 function for the ARM
12 //===----------------------------------------------------------------------===//
16 #if __ARM_ARCH_PROFILE != 'M'
17 #define sub_8(rD_LO, rD_HI, rN_LO, rN_HI, rM_LO, rM_HI) \
18 subs rD_LO, rN_LO, rM_LO ; \
19 sbc rD_HI, rN_HI, rM_HI
24 NO_EXEC_STACK_DIRECTIVE