commit | dd3a4fe10568b3eb4f0f24b9a51b4d70b87a0d5f | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Jan 27 20:38:24 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Jan 27 20:38:24 2009 +0000 |
tree | bd511c9b73b843b5170087e7c9aa9e890457bd98 | |
parent | 3f1cc56852a88fe7b956b30c5676b97ba9dc7c00 [diff] [blame] |
If an input constraint refers to an output constraint, it should have the same constraint info as the output constraint. Fixes PR3417 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63127 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/asm.c b/test/CodeGen/asm.c index 4ef97bd..26aa3bd 100644 --- a/test/CodeGen/asm.c +++ b/test/CodeGen/asm.c
@@ -22,7 +22,8 @@ __asm__ volatile ("":: "m"(a), "m"(b)); } - - - - +// PR3417 +void t5(int i) +{ + asm("nop" : "=r"(i) : "0"(t5)); +}