aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM64/trap.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM64/trap.ll')
-rw-r--r--test/CodeGen/ARM64/trap.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/ARM64/trap.ll b/test/CodeGen/ARM64/trap.ll
new file mode 100644
index 0000000..c9e0bea
--- /dev/null
+++ b/test/CodeGen/ARM64/trap.ll
@@ -0,0 +1,8 @@
+; RUN: llc < %s -march=arm64 | FileCheck %s
+define void @foo() nounwind {
+; CHECK: foo
+; CHECK: brk #1
+ tail call void @llvm.trap()
+ ret void
+}
+declare void @llvm.trap() nounwind