From 61af27860d6042f9c92e357a74954b5b74d90fbc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 3 May 2009 09:05:53 +0000 Subject: 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 --- clang/test/CodeGen/asm.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'clang/test/CodeGen/asm.c') 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 { -- cgit v1.2.3