2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / arc / uncached.c
blob367e8dc7ec5955cc40bc2ccf42a9076545524360
1 /* { dg-do compile } */
3 /* Check 'uncached' type attribute. */
5 typedef volatile unsigned int RwReg __attribute__ ((uncached));
7 typedef struct {
8 RwReg UART_THR;
9 int SIDE_DISH;
10 } UART;
12 void uart_putc(UART *port, char c)
14 port->UART_THR = c;
15 port->SIDE_DISH = c;
18 /* { dg-final { scan-assembler-times "st\.di" 1 } } */