summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/interrupt-attr-64-error.ll
diff options
context:
space:
mode:
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>2015-10-26 14:24:30 +0000
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>2015-10-26 14:24:30 +0000
commit165121f3261133eb9c587d6ac68a31a59f79891b (patch)
tree71e4029f763f2247a228bf3e2eaba98f23beea93 /llvm/test/CodeGen/Mips/interrupt-attr-64-error.ll
parent493e57de01ecabc7af76a64cf39992d12efffca0 (diff)
downloadbcm5719-llvm-165121f3261133eb9c587d6ac68a31a59f79891b.tar.gz
bcm5719-llvm-165121f3261133eb9c587d6ac68a31a59f79891b.zip
[mips] Check for the correct error message in tests for interrupt attributes.
Instead of XFAIL-ing the tests with the wrong usage of the "interrupt" attribute, we should check that we emit the correct error messages to the user. llvm-svn: 251295
Diffstat (limited to 'llvm/test/CodeGen/Mips/interrupt-attr-64-error.ll')
-rw-r--r--llvm/test/CodeGen/Mips/interrupt-attr-64-error.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/interrupt-attr-64-error.ll b/llvm/test/CodeGen/Mips/interrupt-attr-64-error.ll
new file mode 100644
index 00000000000..830c199d91d
--- /dev/null
+++ b/llvm/test/CodeGen/Mips/interrupt-attr-64-error.ll
@@ -0,0 +1,9 @@
+; RUN: not llc -mcpu=mips64r6 -march=mipsel -relocation-model=static < %s 2>%t
+; RUN: FileCheck %s < %t
+
+; CHECK: LLVM ERROR: "interrupt" attribute is only supported for the O32 ABI on MIPS32R2+ at the present time.
+define i32 @isr_sw0() #0 {
+ ret i32 0
+}
+
+attributes #0 = { "interrupt"="sw0" }
OpenPOWER on IntegriCloud