1 ; RUN: llc <%s -fcfi -cfi-type=sub | FileCheck %s
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-unknown-linux-gnu"
6 declare i32 @__gxx_personality_v0(...)
8 @_ZTIPKc = external constant i8*
9 @_ZTIi = external constant i8*
11 define void @f() unnamed_addr jumptable {
15 @a = global void ()* @f
17 ; Make sure invoke gets targeted as well as regular calls
18 define void @_Z3foov(void ()* %f) uwtable ssp {
19 ; CHECK-LABEL: _Z3foov:
22 to label %try.cont unwind label %lpad
23 ; CHECK: callq __llvm_cfi_pointer_warning
27 %0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
28 catch i8* bitcast (i8** @_ZTIi to i8*)
29 filter [1 x i8*] [i8* bitcast (i8** @_ZTIPKc to i8*)]