diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/nios2/nios2-trap-insn.c')
-rw-r--r-- | gcc/testsuite/gcc.target/nios2/nios2-trap-insn.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/nios2/nios2-trap-insn.c b/gcc/testsuite/gcc.target/nios2/nios2-trap-insn.c new file mode 100644 index 00000000000..dd881d166c8 --- /dev/null +++ b/gcc/testsuite/gcc.target/nios2/nios2-trap-insn.c @@ -0,0 +1,7 @@ +/* { dg-do compile } */ +/* { dg-final { scan-assembler "break\\t3" } } */ + +/* Test the nios2 trap instruction */ +void foo(void){ + __builtin_trap(); +} |