* gcc.target/cris/asm-b-1.c: New test.

From-SVN: r132548
This commit is contained in:
Hans-Peter Nilsson 2008-02-22 11:16:18 +00:00 committed by Hans-Peter Nilsson
parent 54062fc0da
commit 37809d7db9
2 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2008-02-22 Hans-Peter Nilsson <hp@axis.com>
* gcc.target/cris/asm-b-1.c: New test.
2008-02-22 Paolo Carlini <pcarlini@suse.de>
PR c++/35282

View file

@ -0,0 +1,15 @@
/* { dg-do assemble } */
/* { dg-options "-O2" } */
/* Checking that the "b" constraint is accepted, for all target variants. */
long sys_ipc (void)
{
long __gu_err = -14;
long dummy_for_get_user_asm_64_;
__asm__ __volatile__( "move.d [%1+],%0\n"
: "=r" (__gu_err), "=b" (dummy_for_get_user_asm_64_)
: "0" (__gu_err));
return __gu_err;
}