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