2012-07-10 02:34:21 +08:00
|
|
|
// REQUIRES: arm-registered-target
|
2011-07-28 08:08:06 +08:00
|
|
|
// RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
|
2011-07-27 06:17:02 +08:00
|
|
|
// Radar 8026855
|
|
|
|
|
|
|
|
int test (void *src) {
|
|
|
|
register int w0 asm ("0");
|
2011-07-28 08:30:42 +08:00
|
|
|
// CHECK: call i32 asm "ldr $0, [$1]", "={r0}{{.*}}(i8*
|
2011-07-27 06:17:02 +08:00
|
|
|
asm ("ldr %0, [%1]": "=r" (w0): "r" (src));
|
|
|
|
return w0;
|
|
|
|
}
|