aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@rt-rk.com>2013-10-11 03:30:21 +0200
committerPetar Jovanovic <petar.jovanovic@rt-rk.com>2013-10-11 03:30:21 +0200
commit24882e3c7fe112de7540242ad91e96328ec4bb63 (patch)
treee91240b53dd1f35dd954b25bfa23ff7f1202cdac /test
parent3ebbc156690e2510a21287c7ece988905a5c2e28 (diff)
Apply upstream: [mips] Implement llvm.trap intrinsic.
Cherry-pick r187244 from upstream. Original commit message: Author: Akira Hatanaka <ahatanaka@mips.com> Date: Fri Jul 26 20:58:55 2013 +0000 [mips] Implement llvm.trap intrinsic. Patch by Sasa Stankovic. This has to be cherrypicked, as two tests fail due to missing llvm.trap intrinsic. The tests are: - run_sysbrk_test - run_abi_types_test TBR= mseaborn@chromium.org, dschuff@chromium.org BUG= sysbrk and abi_types tests fail for MIPS Review URL: https://codereview.chromium.org/26953003
Diffstat (limited to 'test')
-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 0000000000..beb4b89463
--- /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
+}