Jakub Jelinek <ja...@redhat.com> writes:

> +  __asm ("" : "=r" (cf) : "0" (ucf1.ll));

gcc/testsuite/gcc.c-torture/compile/pr55921.c:17:3: error: 'asm' operand has 
impossible constraints
gcc/testsuite/gcc.c-torture/compile/pr55921.c:19:3: error: 'asm' operand has 
impossible constraints

OK?  This still triggers the original bug.

Andreas.

2013-01-11  Andreas Schwab  <sch...@linux-m68k.org>

        * gcc.c-torture/compile/pr55921.c: Don't use matching constraints.

diff --git a/gcc/testsuite/gcc.c-torture/compile/pr55921.c 
b/gcc/testsuite/gcc.c-torture/compile/pr55921.c
index 8ac9e9b..94b7bce 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr55921.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr55921.c
@@ -14,8 +14,8 @@ foo (ucf *in, ucf *out, _Complex float r)
   _Complex float cf;
 
   ucf1.ll = in[i].ll;
-  __asm ("" : "=r" (cf) : "0" (ucf1.ll));
+  __asm ("" : "=r" (cf) : "r" (ucf1.ll));
   cf *= r;
-  __asm ("" : "=r" (ucf1.ll) : "0" (cf));
+  __asm ("" : "=r" (ucf1.ll) : "r" (cf));
   out[i].ll = ucf1.ll;
 }

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to