1 ; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 ; RUN: llc -O0 -mtriple=aarch64-apple-ios -global-isel -stop-after=irtranslator %s -o - | FileCheck %s
4 declare void @llvm.trap()
6 define void @unreachable() {
7 ; CHECK-LABEL: name: unreachable
8 ; CHECK: bb.1 (%ir-block.0):
9 ; CHECK-NEXT: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.trap)
14 declare void @foo() noreturn
15 define void @trap_call_noreturn() {
16 ; CHECK-LABEL: name: trap_call_noreturn
17 ; CHECK: bb.1 (%ir-block.0):
18 ; CHECK-NEXT: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp
19 ; CHECK-NEXT: BL @foo, csr_darwin_aarch64_aapcs, implicit-def $lr, implicit $sp
20 ; CHECK-NEXT: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp