blob: 653dfcb75ddd8535f72a52340cd26ce90f2eb077 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* Alpha -msmall-data didn't transform (mem (symbol_ref)) to
(mem (lo_sum pic (symbol_ref))) within an asm at the right time. */
/* { dg-do compile } */
/* { dg-options "-O2 -fpic" } */
/* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* cris-*-aout* mmix-*-* } 0 } */
void foo()
{
static int test;
int dummy;
asm volatile ("" : "=m"(test), "=r"(dummy) : "m"(test));
}
|