1 ; RUN: llc < %s -mtriple=x86_64-pc-mingw32 | FileCheck %s -check-prefix=WIN64
5 declare i32 @personality(...)
7 ; Check for 'nop' between the last call and the epilogue.
8 define void @foo1() personality ptr @personality {
18 %1 = landingpad { ptr, i32 } cleanup
19 resume { ptr, i32 } %1
22 ; WIN64: .seh_proc foo1
25 ; WIN64: addq ${{[0-9]+}}, %rsp
27 ; Check for 'int3' after noreturn call.
28 ; WIN64: callq _Unwind_Resume
32 ; Check it still works when blocks are reordered.
33 @something = global i32 0
34 define void @foo2(i1 zeroext %cond ) {
35 br i1 %cond, label %a, label %b, !prof !0
41 store i32 0, ptr @something
46 !0 = !{!"branch_weights", i32 100, i32 0}
50 ; WIN64: addq ${{[0-9]+}}, %rsp
54 ; Check nop is not emitted when call is not adjacent to epilogue.
63 ; WIN64: addq ${{[0-9]+}}, %rsp