blob: 7dd86aeb54d7a391d8b42b3855731ff80c1b5858 [file] [log] [blame]
Eric Christopherb6558032011-07-28 00:08:06 +00001// RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
Eric Christopher3883e662011-07-26 22:17:02 +00002// Radar 8026855
3
4int test (void *src) {
5 register int w0 asm ("0");
Eric Christopher886fefa2011-07-28 00:30:42 +00006 // CHECK: call i32 asm "ldr $0, [$1]", "={r0}{{.*}}(i8*
Eric Christopher3883e662011-07-26 22:17:02 +00007 asm ("ldr %0, [%1]": "=r" (w0): "r" (src));
8 return w0;
9}