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
RISC-V: Error if function declared with different interrupt modes.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
riscv
/
pr84660.c
blob
a87fa0a914dcf18e46385ae21735a21a12688e27
1
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
4
extern
void
abort
(
void
);
5
extern
void
exit
(
int
);
6
7
unsigned int
__attribute__
((
noinline
,
noclone
))
8
foo
(
unsigned int
i
) {
9
10
return
0xFFFF
& (
0xd066
<< (((
i
&
0x1
) ^
0x2f
) &
0xf
));
11
}
12
13
int
main
() {
14
if
(
foo
(
1
) !=
0x8000
)
15
abort
();
16
exit
(
0
);
17
}