summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/cris/asm-b-1.c
blob: 5417c047de460a4ec338b1e1fc03388d1541442c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}