blob: 18afde21f0f335aae199cc81fdf44aaaed4db5eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* PR middle-end/32370 */
/* { dg-do compile { target i?86-*-* x86_64-*-* ia64-*-* } } */
/* { dg-options "" { target ia64-*-* } } */
/* { dg-options "-ffixed-esi" { target i?86-*-* x86_64-*-* } } */
#if defined __i386__ || defined __x86_64__
# define C "=S"
#elif defined __ia64__
# define C "=a"
#endif
unsigned int
foo (unsigned long port)
{
unsigned int v;
__asm__ __volatile__ ("" : C (v) : "Nd" (port)); /* { dg-error "while reloading\|has impossible" } */
return v;
}
void
bar (void)
{
foo (0);
}
|