diff options
author | Chris Lattner <sabre@nondot.org> | 2009-05-03 09:05:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-05-03 09:05:53 +0000 |
commit | 61af27860d6042f9c92e357a74954b5b74d90fbc (patch) | |
tree | 841ed2fccd369b9b765ff929ff272b532b359e98 /clang/test/CodeGen/asm.c | |
parent | ccf618368754b169929e5febfe0ed4e586af1aeb (diff) | |
download | bcm5719-llvm-61af27860d6042f9c92e357a74954b5b74d90fbc.tar.gz bcm5719-llvm-61af27860d6042f9c92e357a74954b5b74d90fbc.zip |
look at the right operand when increasing the size of an asm output,
this fixes http://llvm.org/bugs/show_bug.cgi?id=3373#c20
llvm-svn: 70685
Diffstat (limited to 'clang/test/CodeGen/asm.c')
-rw-r--r-- | clang/test/CodeGen/asm.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGen/asm.c b/clang/test/CodeGen/asm.c index 8aa392aa807..db6567058d7 100644 --- a/clang/test/CodeGen/asm.c +++ b/clang/test/CodeGen/asm.c @@ -77,6 +77,19 @@ unsigned char t13(unsigned input) { return output; } +struct large { + int x[1000]; +}; + +unsigned long t15(int x, struct large *P) { + __asm__("xyz " + : "=r" (x) + : "m" (*P), "0" (x)); + return x; +} + + + // bitfield destination of an asm. struct S { |