add support for tying asm operands where the result is smaller than
the input. This is part of PR3373.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70677 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/asm.c b/test/CodeGen/asm.c
index 92ba31b..d730914 100644
--- a/test/CodeGen/asm.c
+++ b/test/CodeGen/asm.c
@@ -60,7 +60,14 @@
return output;
}
-
+// PR3373
+unsigned char t12(unsigned input) {
+ unsigned char output;
+ __asm__("xyz"
+ : "=a" (output)
+ : "0" (input));
+ return output;
+}
struct S {