aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-07-26 20:58:55 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-07-26 20:58:55 +0000
commit9758562aa706a5a20a9d833074e733ed544db776 (patch)
tree2f308beae947ba1bd07b03b1f9ec1a13189de9b2 /test/CodeGen/Mips
parent407883b69b3bc10ebf053f5922d877b2e786d124 (diff)
downloadexternal_llvm-9758562aa706a5a20a9d833074e733ed544db776.zip
external_llvm-9758562aa706a5a20a9d833074e733ed544db776.tar.gz
external_llvm-9758562aa706a5a20a9d833074e733ed544db776.tar.bz2
[mips] Implement llvm.trap intrinsic.
Patch by Sasa Stankovic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips')
-rw-r--r--test/CodeGen/Mips/trap.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/trap.ll b/test/CodeGen/Mips/trap.ll
new file mode 100644
index 0000000..beb4b89
--- /dev/null
+++ b/test/CodeGen/Mips/trap.ll
@@ -0,0 +1,11 @@
+; RUN: llc -march=mipsel -mcpu=mips32 < %s | FileCheck %s
+
+declare void @llvm.trap()
+
+define void @f1() {
+entry:
+ call void @llvm.trap()
+ unreachable
+
+; CHECK: break
+}