repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arc
/
uncached.c
blob
367e8dc7ec5955cc40bc2ccf42a9076545524360
1
/* { dg-do compile } */
2
3
/* Check 'uncached' type attribute. */
4
5
typedef volatile
unsigned int
RwReg
__attribute__
((
uncached
));
6
7
typedef
struct
{
8
RwReg UART_THR
;
9
int
SIDE_DISH
;
10
}
UART
;
11
12
void
uart_putc
(
UART
*
port
,
char
c
)
13
{
14
port
->
UART_THR
=
c
;
15
port
->
SIDE_DISH
=
c
;
16
}
17
18
/* { dg-final { scan-assembler-times "st\.di" 1 } } */