On Fri, 11 Jan 2013, Andreas Schwab wrote:

> 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.

Ok.

Thanks,
Richard.

> 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;
>  }
> 
> 

-- 
Richard Biener <rguent...@suse.de>
SUSE / SUSE Labs
SUSE LINUX Products GmbH - Nuernberg - AG Nuernberg - HRB 16746
GF: Jeff Hawn, Jennifer Guild, Felix Imend

Reply via email to