summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/trap.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-05-11 07:26:32 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-05-11 07:26:32 +0000
commit2fa5a7e7e4f7843c07941c1e85d74e610f46dbfb (patch)
tree95aa2579d12bc271359876d8e382782d77a81bff /llvm/test/CodeGen/ARM/trap.ll
parent10dc8aa581f6fa804320296414a737105a4c9275 (diff)
downloadbcm5719-llvm-2fa5a7e7e4f7843c07941c1e85d74e610f46dbfb.tar.gz
bcm5719-llvm-2fa5a7e7e4f7843c07941c1e85d74e610f46dbfb.zip
Select @llvm.trap to the special B with 1111 condition (i.e. trap) instruction.
llvm-svn: 103459
Diffstat (limited to 'llvm/test/CodeGen/ARM/trap.ll')
-rw-r--r--llvm/test/CodeGen/ARM/trap.ll12
1 files changed, 12 insertions, 0 deletions
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
OpenPOWER on IntegriCloud