Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / AArch64 / inlineasm-ios.c
blob5e7328a15f69de07bc729f03f88f36503ec09e9e
1 // REQUIRES: aarch64-registered-target
2 // RUN: %clang_cc1 -triple arm64-apple-ios -S -o - %s | FileCheck %s
4 // CHECK: _restartable_function:
5 // CHECK-NEXT: ldr x11, [x0]
6 // CHECK-NEXT: add x11, x11, #1
7 // CHECK-NEXT: str x11, [x0]
8 // CHECK-NEXT: Ltmp0:
9 // CHECK-NEXT: b Ltmp0
10 // CHECK-NEXT: LExit_restartable_function:
11 // CHECK-NEXT: ret
12 asm(".align 4\n"
13 " .text\n"
14 " .private_extern _restartable_function\n"
15 "_restartable_function:\n"
16 " ldr x11, [x0]\n"
17 " add x11, x11, #1\n"
18 " str x11, [x0]\n"
19 "1:\n"
20 " b 1b\n"
21 "LExit_restartable_function:\n"
22 " ret\n"