aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/RISCV/sifive-interrupt-attr-err.ll
blob: ccc11b74f78e7d2e6230cea9368a7bdad21fa811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: not llc -mtriple riscv32-unknown-elf -mattr=+experimental-xsfmclic -o - %s 2>&1 \
; RUN:   | FileCheck %s
; RUN: not llc -mtriple riscv64-unknown-elf -mattr=+experimental-xsfmclic -o - %s 2>&1 \
; RUN:   | FileCheck %s

;; Test that these report fatal errors.

; CHECK: LLVM ERROR: 'SiFive-CLIC-preemptible' interrupt kinds cannot have a frame pointer

define void @preemptible() "interrupt"="SiFive-CLIC-preemptible" "frame-pointer"="all" {
  ret void
}