diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:46:15 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:46:15 +0000 |
| commit | dd58ef019b700900793a1eb48b52123db01b654e (patch) | |
| tree | fcfbb4df56a744f4ddc6122c50521dd3f1c5e196 /test/CodeGen/Mips/interrupt-attr-error.ll | |
| parent | 2fe5752e3a7c345cdb59e869278d36af33c13fa4 (diff) | |
Notes
Diffstat (limited to 'test/CodeGen/Mips/interrupt-attr-error.ll')
| -rw-r--r-- | test/CodeGen/Mips/interrupt-attr-error.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/interrupt-attr-error.ll b/test/CodeGen/Mips/interrupt-attr-error.ll new file mode 100644 index 000000000000..f35e98ea14bf --- /dev/null +++ b/test/CodeGen/Mips/interrupt-attr-error.ll @@ -0,0 +1,9 @@ +; RUN: not llc -mcpu=mips32 -march=mipsel -relocation-model=static < %s 2>%t +; RUN: FileCheck %s < %t + +; CHECK: LLVM ERROR: "interrupt" attribute is not supported on pre-MIPS32R2 or MIPS16 targets. +define i32 @isr_sw0() #0 { + ret i32 0 +} + +attributes #0 = { "interrupt"="sw0" } |
