[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / 2010-05-26-AsmSideEffect.c
blob37b72fe433b6a7e456b855d24811b05fee314301
1 // REQUIRES: arm-registered-target
2 // RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
4 int test (void *src) {
5 register int w0 asm ("0");
6 // CHECK: call i32 asm "ldr $0, [$1]", "={r0}{{.*}}(ptr
7 asm ("ldr %0, [%1]": "=r" (w0): "r" (src));
8 return w0;