aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/asm.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-03 08:21:20 +0000
committerChris Lattner <sabre@nondot.org>2009-05-03 08:21:20 +0000
commita077b5c8631596f8d7a588933a9de5d08e9ba428 (patch)
tree57576b46f2d4cb1fcc29830e4b6fcab9d565a660 /test/CodeGen/asm.c
parent50ac766f562cc6433f767252ce5b713132019560 (diff)
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
Diffstat (limited to 'test/CodeGen/asm.c')
-rw-r--r--test/CodeGen/asm.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/CodeGen/asm.c b/test/CodeGen/asm.c
index 92ba31baa5..d7309149eb 100644
--- a/test/CodeGen/asm.c
+++ b/test/CodeGen/asm.c
@@ -60,7 +60,14 @@ unsigned t11(signed char input) {
return output;
}
-
+// PR3373
+unsigned char t12(unsigned input) {
+ unsigned char output;
+ __asm__("xyz"
+ : "=a" (output)
+ : "0" (input));
+ return output;
+}
struct S {