sync_fetch_and_sub_4.S 696 B

12345678910111213141516171819202122
  1. //===-- sync_fetch_and_sub_4.S - ------------------------------------------===//
  2. //
  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
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file implements the __sync_fetch_and_sub_4 function for the ARM
  10. // architecture.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #include "sync-ops.h"
  14. // "subs" is 2 bytes shorter than "sub".
  15. #define sub_4(rD, rN, rM) sub rD, rN, rM
  16. SYNC_OP_4(sub_4)
  17. NO_EXEC_STACK_DIRECTIVE