From 24882e3c7fe112de7540242ad91e96328ec4bb63 Mon Sep 17 00:00:00 2001 From: Petar Jovanovic Date: Fri, 11 Oct 2013 03:30:21 +0200 Subject: Apply upstream: [mips] Implement llvm.trap intrinsic. Cherry-pick r187244 from upstream. Original commit message: Author: Akira Hatanaka 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 --- test/CodeGen/Mips/trap.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CodeGen/Mips/trap.ll (limited to 'test/CodeGen') 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 +} -- cgit v1.2.3-18-g5258