[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / llvm / test / Instrumentation / DataFlowSanitizer / ignore_persnality_routine.ll
blob67bca05189cee20683cc641d5efc8317444b4674
1 ; RUN: opt < %s -passes=dfsan -S --dfsan-abilist=%S/Inputs/personality-routine-abilist.txt | FileCheck %s
2 ; RUN: opt < %s -passes=dfsan -S --dfsan-abilist=%S/Inputs/personality-routine-abilist.txt -dfsan-ignore-personality-routine | FileCheck %s --check-prefix=CHECK-IGNORE
4 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
5 target triple = "x86_64-unknown-linux-gnu"
7 declare i32 @__gxx_personality_v0(...)
9 declare ptr @__cxa_begin_catch(ptr)
11 declare void @__cxa_end_catch()
13 declare void @g(...)
15 ; CHECK-LABEL: @h.dfsan
16 ; CHECK-SAME: personality {{.*}}@"dfsw$__gxx_personality_v0"{{.*}}
17 ; CHECK-IGNORE-LABEL: @h.dfsan
18 ; CHECK-IGNORE-SAME: personality {{.*}}__gxx_personality_v0{{.*}}
19 define i32 @h() personality ptr @__gxx_personality_v0 {
20   invoke void (...) @g(i32 42)
21           to label %try.cont unwind label %lpad
23 lpad:
24   %1 = landingpad { ptr, i32 }
25           catch ptr null
26   %2 = extractvalue { ptr, i32 } %1, 0
27   %3 = tail call ptr @__cxa_begin_catch(ptr %2)
28   tail call void @__cxa_end_catch()
29   br label %try.cont
31 try.cont:
32   ret i32 0
35 ; CHECK: @"dfsw$__gxx_personality_v0"
36 ; CHECK: call void @__dfsan_vararg_wrapper
37 ; CHECK-IGNORE-NOT: @"dfsw$__gxx_personality_v0"
38 ; CHECK-IGNORE-NOT: call void @__dfsan_vararg_wrapper