OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr27528.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Check the warnings and errors generated for asm operands that aren't
2
   obviously constant but that are constrained to be constants.  */
3
/* { dg-options "" } */
4
/* { dg-error "impossible constraint" "" { target *-*-* } 13 } */
5
/* { dg-error "impossible constraint" "" { target *-*-* } 14 } */
6
/* { dg-error "impossible constraint" "" { target *-*-* } 15 } */
7
/* { dg-error "impossible constraint" "" { target *-*-* } 16 } */
8
int bar (int);
9
void
10
foo (int *x, int y)
11
{
12
  int constant = 0;
13
  asm ("# %0" :: "i" (x)); /* { dg-warning "probably doesn't match" } */
14
  asm ("# %0" :: "i" (bar (*x))); /* { dg-warning "probably doesn't match" } */
15
  asm ("# %0" :: "i" (*x + 0x11)); /* { dg-warning "probably doesn't match" } */
16
  asm ("# %0" :: "i" (constant)); /* { dg-warning "probably doesn't match" } */
17
  asm ("# %0" :: "i" (y * 0)); /* folded */
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.