summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/asm.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-10 06:38:02 +0000
committerChris Lattner <sabre@nondot.org>2009-03-10 06:38:02 +0000
commit6dd0f9263de00267885cbb682c615bc72c5dc4e2 (patch)
tree0b8ff117aa711ef7fafec8c3ef2ca6f2d3410aaa /clang/test/CodeGen/asm.c
parentd7d5fdf0903ef9855cfd4682a1e85659862786e7 (diff)
downloadbcm5719-llvm-6dd0f9263de00267885cbb682c615bc72c5dc4e2.tar.gz
bcm5719-llvm-6dd0f9263de00267885cbb682c615bc72c5dc4e2.zip
reduce duplication of parsing code between %0 and %x0 and
add support for modifiers on named references, like %c[foo]. llvm-svn: 66532
Diffstat (limited to 'clang/test/CodeGen/asm.c')
-rw-r--r--clang/test/CodeGen/asm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/CodeGen/asm.c b/clang/test/CodeGen/asm.c
index 4e6ff4da90f..99655f8bb7c 100644
--- a/clang/test/CodeGen/asm.c
+++ b/clang/test/CodeGen/asm.c
@@ -31,4 +31,9 @@ void t6(void) {
// RUN: grep "T7 NAMED: \$2" %t
void t7(int a) {
__asm__ volatile("T7 NAMED: %[input]" : "+r"(a): [input] "i" (4));
-} \ No newline at end of file
+}
+
+// RUN: grep "T8 NAMED MODIFIER: \${0:c}" %t
+void t8() {
+ __asm__ volatile("T8 NAMED MODIFIER: %c[input]" :: [input] "i" (4));
+}
OpenPOWER on IntegriCloud