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
12 @_ZTIi = external constant i8*
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
18 define void @_Z4funcv() local_unnamed_addr #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
20 %exception = tail call i8* @__cxa_allocate_exception(i64 4)
21 %0 = bitcast i8* %exception to i32*
22 store i32 100, i32* %0, align 16
23 invoke void @__cxa_throw(i8* %exception, i8* bitcast (i8** @_ZTIi to i8*), i8* null)
24 to label %unreachable unwind label %lpad
26 lpad: ; preds = %entry
27 %1 = landingpad { i8*, i32 }
28 filter [0 x i8*] zeroinitializer
29 %2 = extractvalue { i8*, i32 } %1, 0
30 tail call void @__cxa_call_unexpected(i8* %2)
33 unreachable: ; preds = %entry
35 ; CHECK-LABEL: _Z4funcv
36 ; CHECK-NOT: .debug_frame
37 ; CHECK: .cfi_personality
41 declare i8* @__cxa_allocate_exception(i64) local_unnamed_addr
43 declare void @__cxa_throw(i8*, i8*, i8*) local_unnamed_addr
45 declare i32 @__gxx_personality_v0(...)
47 declare void @__cxa_call_unexpected(i8*) local_unnamed_addr
50 attributes #0 = { noreturn nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "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,-qpx" "unsafe-fp-math"="false" "use-soft-float"="false" }