diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2008-02-22 11:16:18 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2008-02-22 11:16:18 +0000 |
commit | 37809d7db9cb548914d61fedd850382eee5ed8cc (patch) | |
tree | 00cb9a914f5598031682f57c0dd57c4ec51dc740 | |
parent | 54062fc0da3a1009eb0f53e899fb44d8b7b4a177 (diff) | |
download | gcc-37809d7db9cb548914d61fedd850382eee5ed8cc.zip gcc-37809d7db9cb548914d61fedd850382eee5ed8cc.tar.gz gcc-37809d7db9cb548914d61fedd850382eee5ed8cc.tar.bz2 |
* gcc.target/cris/asm-b-1.c: New test.
From-SVN: r132548
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/cris/asm-b-1.c | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 053949b..9842305 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 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 0000000..5417c04 --- /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; +} |