Ana Pazos | 2e4106b | 2018-07-26 17:49:43 +0000 | [diff] [blame] | 1 | ; RUN: not llc -mtriple riscv32-unknown-elf -o - %s \ |
2 | ; RUN: 2>&1 | FileCheck %s | ||||
3 | ; RUN: not llc -mtriple riscv64-unknown-elf -o - %s \ | ||||
4 | ; RUN: 2>&1 | FileCheck %s | ||||
5 | |||||
6 | ; CHECK: LLVM ERROR: Functions with the interrupt attribute must have void return type! | ||||
7 | define i32 @isr1_user() #0 { | ||||
8 | ret i32 0 | ||||
9 | } | ||||
10 | |||||
11 | |||||
12 | attributes #0 = { "interrupt"="user" } |