diff options
Diffstat (limited to 'clang/test/CodeGen/arm-inline-asm.c')
-rw-r--r-- | clang/test/CodeGen/arm-inline-asm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm-inline-asm.c b/clang/test/CodeGen/arm-inline-asm.c new file mode 100644 index 0000000..0152b05 --- /dev/null +++ b/clang/test/CodeGen/arm-inline-asm.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s + +void t1 (void *f, int g) { + // CHECK: call void asm "str $1, $0", "=*Q,r" + asm("str %1, %0" : "=Q"(f) : "r"(g)); +} |