* gcc.target/cris/asm-b-1.c: New test.
authorHans-Peter Nilsson <hp@axis.com>
Fri, 22 Feb 2008 11:16:18 +0000 (11:16 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Fri, 22 Feb 2008 11:16:18 +0000 (11:16 +0000)
From-SVN: r132548

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/cris/asm-b-1.c [new file with mode: 0644]

index 053949b98c24f31893e52809a2caf9dbc04c367a..9842305c5cfe1d8fc7080bf0554648bf0438b11a 100644 (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
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 (file)
index 0000000..5417c04
--- /dev/null
@@ -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;
+}