From 51c9043f3bc215bb3026486e5e1ef5989a8d8d8b Mon Sep 17 00:00:00 2001 From: Reed Kotler Date: Wed, 7 Aug 2013 04:00:26 +0000 Subject: Create a pattern for the "trap" instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187863 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Mips/trap1.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/CodeGen/Mips/trap1.ll (limited to 'test/CodeGen') diff --git a/test/CodeGen/Mips/trap1.ll b/test/CodeGen/Mips/trap1.ll new file mode 100644 index 0000000..bfcd7fe --- /dev/null +++ b/test/CodeGen/Mips/trap1.ll @@ -0,0 +1,13 @@ +; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=pic < %s | FileCheck %s -check-prefix=pic + +declare void @llvm.trap() + +; Function Attrs: nounwind optsize readnone +define i32 @main() { +entry: + call void @llvm.trap() + unreachable +; pic: break 0 + ret i32 0 +} + -- cgit v1.1