1 ; RUN: llc < %s -mtriple=x86_64-scei-ps4 | FileCheck %s
3 declare i32 @personality(...)
5 ; Check that after the (implicitly noreturn) unwind call, there is
6 ; another instruction. It was easy to produce 'ud2' so we check for that.
7 define void @foo1() personality i32 (...)* @personality {
9 ; CHECK: .cfi_startproc
12 ; Check for 'ud2' between noreturn call and function end.
13 ; CHECK: callq _Unwind_Resume
15 ; CHECK-NEXT: .Lfunc_end0:
22 %1 = landingpad { i8*, i32 } cleanup
23 resume { i8*, i32 } %1
26 declare void @bar() #0
28 ; Similar check after an explicit noreturn call.
33 ; CHECK-NEXT: .Lfunc_end1:
38 attributes #0 = { noreturn }