From: Hans-Peter Nilsson Date: Fri, 22 Feb 2008 11:16:18 +0000 (+0000) Subject: * gcc.target/cris/asm-b-1.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37809d7db9cb548914d61fedd850382eee5ed8cc;p=gcc.git * gcc.target/cris/asm-b-1.c: New test. From-SVN: r132548 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 053949b98c2..9842305c5cf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-02-22 Hans-Peter Nilsson + + * gcc.target/cris/asm-b-1.c: New test. + 2008-02-22 Paolo Carlini PR c++/35282 diff --git a/gcc/testsuite/gcc.target/cris/asm-b-1.c b/gcc/testsuite/gcc.target/cris/asm-b-1.c new file mode 100644 index 00000000000..5417c047de4 --- /dev/null +++ b/gcc/testsuite/gcc.target/cris/asm-b-1.c @@ -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; +}