llvm/llvm/test/CodeGen/AArch64/arm64-hlt.ll

; RUN: llc < %s -mtriple=arm64-eabi | FileCheck %s

define void @foo() nounwind {
; CHECK-LABEL: foo
; CHECK: hlt #0x2
  tail call void @llvm.aarch64.hlt(i32 2)
  ret void
}

declare void @llvm.aarch64.hlt(i32 immarg) nounwind