summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2008-02-26 19:19:58 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2008-02-26 19:19:58 +0000
commit8af648ac55c03385d633b94709a300a431411a77 (patch)
tree62c025f95eb116a751374d5c3f0d1a1ee2f8c8bf /clang/test
parent9b69ed398b4661515b08e4bb32e309f258ce8c05 (diff)
downloadbcm5719-llvm-8af648ac55c03385d633b94709a300a431411a77.tar.gz
bcm5719-llvm-8af648ac55c03385d633b94709a300a431411a77.zip
Fix a bug in ConvertAsmString function.
llvm-svn: 47618
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/2008-02-26-inline-asm-bug.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2008-02-26-inline-asm-bug.c b/clang/test/CodeGen/2008-02-26-inline-asm-bug.c
new file mode 100644
index 00000000000..668b06c0d18
--- /dev/null
+++ b/clang/test/CodeGen/2008-02-26-inline-asm-bug.c
@@ -0,0 +1,6 @@
+// RUN: clang -emit-llvm < %s | grep "\$0,\$1"
+
+void f() {
+ int d1, d2;
+ asm("%0,%1": "=r" (d1) : "r" (d2));
+}
OpenPOWER on IntegriCloud