diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-05-03 07:27:51 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-05-03 07:27:51 +0000 | 
| commit | b65933eaa25905d5ff98af834c6da598137d66cc (patch) | |
| tree | f86b6f261c567d1129df5b3b4bd367023a63bfbe /clang/test/CodeGen | |
| parent | 17769a34da446cec593dfa9eb98c6ad1fa7c9203 (diff) | |
| download | bcm5719-llvm-b65933eaa25905d5ff98af834c6da598137d66cc.tar.gz bcm5719-llvm-b65933eaa25905d5ff98af834c6da598137d66cc.zip | |
handle codegen of asms where a small input is tied to a large output.
llvm-svn: 70672
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/asm.c | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/clang/test/CodeGen/asm.c b/clang/test/CodeGen/asm.c index abe91519ed1..757a2740a7d 100644 --- a/clang/test/CodeGen/asm.c +++ b/clang/test/CodeGen/asm.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -emit-llvm %s -o %t -arch=i386 && +c// RUN: clang-cc -emit-llvm %s -o %t -arch=i386 &&  void t1(int len) {    __asm__ volatile("" : "=&r"(len), "+&r"(len));  } @@ -49,3 +49,13 @@ unsigned t9(unsigned int a) {  void t10(int r) {    __asm__("PR3908 %[lf] %[xx] %[li] %[r]" : [r] "+r" (r) : [lf] "mx" (0), [li] "mr" (0), [xx] "x" ((double)(0)));  }          + + +// PR3373 +unsigned t11(signed char input) { +  unsigned  output; +  __asm__("xyz" +          : "=a" (output) +          : "0" (input)); +  return output; +} | 

