summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/asm.c')
-rw-r--r--clang/test/CodeGen/asm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/asm.c b/clang/test/CodeGen/asm.c
index fe9ca9a4c74..ad15eb27d84 100644
--- a/clang/test/CodeGen/asm.c
+++ b/clang/test/CodeGen/asm.c
@@ -120,3 +120,14 @@ void t17() {
// CHECK: call void asm "nop", "=*m,
}
+// <rdar://problem/6841383>
+int t18(unsigned data) {
+ int a, b;
+
+ asm("xyz" :"=a"(a), "=d"(b) : "a"(data));
+ return a + b;
+// CHECK: t18(i32
+// CHECK: = call {{.*}}asm "xyz"
+// CHECK-NEXT: extractvalue
+// CHECK-NEXT: extractvalue
+}
OpenPOWER on IntegriCloud