xref: /llvm-project/llvm/test/CodeGen/AArch64/arm64-hlt.ll (revision ae7ab043f2d8077ed00bb2d3239da4b96ad4b387)
1; RUN: llc < %s -mtriple=arm64-eabi | FileCheck %s
2
3define void @foo() nounwind {
4; CHECK-LABEL: foo
5; CHECK: hlt #0x2
6  tail call void @llvm.aarch64.hlt(i32 2)
7  ret void
8}
9
10declare void @llvm.aarch64.hlt(i32 immarg) nounwind
11