brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · 5095460 Raw
85 lines · plain
1; RUN: llc < %s | FileCheck %s2 3target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"4target triple = "i686-pc-windows-msvc"5 6define void @nested_finally() #0 personality ptr @_except_handler3 {7entry:8  invoke void @f(i32 1) #39          to label %invoke.cont unwind label %ehcleanup10 11invoke.cont:                                      ; preds = %entry12  invoke void @f(i32 2) #313          to label %invoke.cont.1 unwind label %ehcleanup.314 15invoke.cont.1:                                    ; preds = %invoke.cont16  call void @f(i32 3) #317  ret void18 19ehcleanup:                                        ; preds = %entry20  %0 = cleanuppad within none []21  invoke void @f(i32 2) #3 [ "funclet"(token %0) ]22          to label %invoke.cont.2 unwind label %ehcleanup.323 24invoke.cont.2:                                    ; preds = %ehcleanup25  cleanupret from %0 unwind label %ehcleanup.326 27ehcleanup.3:                                      ; preds = %invoke.cont.2, %ehcleanup.end, %invoke.cont28  %1 = cleanuppad within none []29  call void @f(i32 3) #3 [ "funclet"(token %1) ]30  cleanupret from %1 unwind to caller31}32 33declare void @f(i32) #034 35declare i32 @_except_handler3(...)36 37attributes #0 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "use-soft-float"="false" }38attributes #1 = { noinline nounwind "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "use-soft-float"="false" }39attributes #2 = { nounwind readnone }40attributes #3 = { noinline }41 42; CHECK: _nested_finally:43; CHECK: movl $-1, -[[state:[0-9]+]](%ebp)44; CHECK: movl {{.*}}, %fs:045; CHECK: movl $1, -[[state]](%ebp)46; CHECK: pushl $147; CHECK: calll _f48; CHECK: addl $4, %esp49; CHECK: movl $0, -[[state]](%ebp)50; CHECK: pushl $251; CHECK: calll _f52; CHECK: addl $4, %esp53; CHECK: movl $-1, -[[state]](%ebp)54; CHECK: pushl $355; CHECK: calll _f56; CHECK: addl $4, %esp57; CHECK: retl58 59; CHECK: LBB0_[[inner:[0-9]+]]: # %ehcleanup60; CHECK: pushl %ebp61; CHECK: addl $12, %ebp62; CHECK: pushl $263; CHECK: calll _f64; CHECK: addl $4, %esp65; CHECK: addl $4, %esp66; CHECK: popl %ebp67; CHECK: retl68 69; CHECK: LBB0_[[outer:[0-9]+]]: # %ehcleanup.370; CHECK: pushl %ebp71; CHECK: addl $12, %ebp72; CHECK: pushl $373; CHECK: calll _f74; CHECK: addl $8, %esp75; CHECK: popl %ebp76; CHECK: retl77 78; CHECK: L__ehtable$nested_finally:79; CHECK:        .long   -1 # ToState80; CHECK:        .long   0  # Null81; CHECK:        .long   "?dtor$[[outer]]@?0?nested_finally@4HA" # FinallyFunclet82; CHECK:        .long   0  # ToState83; CHECK:        .long   0  # Null84; CHECK:        .long   "?dtor$[[inner]]@?0?nested_finally@4HA" # FinallyFunclet85