From 2fa5a7e7e4f7843c07941c1e85d74e610f46dbfb Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 11 May 2010 07:26:32 +0000 Subject: Select @llvm.trap to the special B with 1111 condition (i.e. trap) instruction. llvm-svn: 103459 --- llvm/test/CodeGen/ARM/trap.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/CodeGen/ARM/trap.ll (limited to 'llvm/test/CodeGen/ARM/trap.ll') diff --git a/llvm/test/CodeGen/ARM/trap.ll b/llvm/test/CodeGen/ARM/trap.ll new file mode 100644 index 00000000000..763dff30569 --- /dev/null +++ b/llvm/test/CodeGen/ARM/trap.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -march=arm | FileCheck %s +; rdar://7961298 + +define arm_apcscc void @t() nounwind { +entry: +; CHECK: t: +; CHECK: trap + call void @llvm.trap() + unreachable +} + +declare void @llvm.trap() nounwind -- cgit v1.2.3