1 ; RUN: llc < %s -mtriple=x86_64-scei-ps4 | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-sie-ps5 | FileCheck %s
4 declare i32 @personality(...)
6 ; Check that after the (implicitly noreturn) unwind call, there is
7 ; another instruction. It was easy to produce 'ud2' so we check for that.
8 define void @foo1() personality ptr @personality {
10 ; CHECK: .cfi_startproc
13 ; Check for 'ud2' between noreturn call and function end.
14 ; CHECK: callq _Unwind_Resume
16 ; CHECK-NEXT: .Lfunc_end0:
23 %1 = landingpad { ptr, i32 } cleanup
24 resume { ptr, i32 } %1
27 declare void @bar() #0
29 ; Similar check after an explicit noreturn call.
34 ; CHECK-NEXT: .Lfunc_end1:
39 attributes #0 = { noreturn }