blob: 367e8dc7ec5955cc40bc2ccf42a9076545524360 [file] [log] [blame]
/* { dg-do compile } */
/* Check 'uncached' type attribute. */
typedef volatile unsigned int RwReg __attribute__ ((uncached));
typedef struct {
RwReg UART_THR;
int SIDE_DISH;
} UART;
void uart_putc(UART *port, char c)
{
port->UART_THR = c;
port->SIDE_DISH = c;
}
/* { dg-final { scan-assembler-times "st\.di" 1 } } */