diff options
author | Eric Christopher <echristo@apple.com> | 2011-07-29 21:20:35 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-07-29 21:20:35 +0000 |
commit | b081ba651cd0f5048e30ad4e938d9e402abfc142 (patch) | |
tree | a83e4c6ecf5044b42ef68674a14878619067d57f /clang/test/CodeGen/arm-inline-asm.c | |
parent | aa5030066fb56c3ce918bd7cdd2ecf2d552fc2b2 (diff) | |
download | bcm5719-llvm-b081ba651cd0f5048e30ad4e938d9e402abfc142.tar.gz bcm5719-llvm-b081ba651cd0f5048e30ad4e938d9e402abfc142.zip |
Add support for the 'Q' arm memory constraint.
Fixes rdar://9866494
llvm-svn: 136524
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 00000000000..0152b050fd7 --- /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)); +} |