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: Add interrupt attribute modes.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
riscv
/
interrupt-umode.c
blob
cd120e489ca0f740d3dbfe7acbc2d501a0cb4085
1
/* Verify the return instruction is mret. */
2
/* { dg-do compile } */
3
/* { dg-options "-O" } */
4
void
__attribute__
((
interrupt
(
"user"
)))
5
foo
(
void
)
6
{
7
}
8
/* { dg-final { scan-assembler "uret" } } */