1; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-unknown \ 2; RUN: -verify-machineinstrs -ppc-asm-full-reg-names \ 3; RUN: -ppc-vsr-nums-as-vr < %s | FileCheck %s 4; RUN: llc -mcpu=pwr8 -mtriple=powerpc64le-unknown-unknown \ 5; RUN: -verify-machineinstrs -ppc-asm-full-reg-names \ 6; RUN: -ppc-vsr-nums-as-vr < %s | FileCheck %s 7; RUN: llc -mtriple=powerpc64-unknown-unknown \ 8; RUN: -verify-machineinstrs -ppc-asm-full-reg-names \ 9; RUN: -ppc-vsr-nums-as-vr < %s | FileCheck %s 10 11 12@_ZTIi = external constant ptr 13 14; Function is marked as nounwind but it still throws with __cxa_throw and 15; calls __cxa_call_unexpected. 16; Need to make sure that we do not only have a debug frame. 17; Function Attrs: noreturn nounwind 18define void @_Z4funcv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 { 19entry: 20 %exception = tail call ptr @__cxa_allocate_exception(i64 4) 21 store i32 100, ptr %exception, align 16 22 invoke void @__cxa_throw(ptr %exception, ptr @_ZTIi, ptr null) 23 to label %unreachable unwind label %lpad 24 25lpad: ; preds = %entry 26 %0 = landingpad { ptr, i32 } 27 filter [0 x ptr] zeroinitializer 28 %1 = extractvalue { ptr, i32 } %0, 0 29 tail call void @__cxa_call_unexpected(ptr %1) 30 unreachable 31 32unreachable: ; preds = %entry 33 unreachable 34; CHECK-LABEL: _Z4funcv 35; CHECK-NOT: .debug_frame 36; CHECK: .cfi_personality 37; CHECK: .cfi_endproc 38} 39 40declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr 41 42declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr 43 44declare i32 @__gxx_personality_v0(...) 45 46declare void @__cxa_call_unexpected(ptr) local_unnamed_addr 47 48 49attributes #0 = { noreturn nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="ppc64le" "target-features"="+altivec,+bpermd,+crypto,+direct-move,+extdiv,+htm,+power8-vector,+vsx,-power9-vector" "unsafe-fp-math"="false" "use-soft-float"="false" } 50 51