20 lines · plain
1; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s2; RUN: llvm-modextract -b -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=M0 %s3; RUN: llvm-modextract -b -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=M1 %s4 5; Check that __cfi_check is emitted on the full LTO side with6; attributes preserved.7 8; M0: define void @f()9define void @f() !type !{!"f1", i32 0} {10 ret void 11}12 13; M1: define void @__cfi_check() #014define void @__cfi_check() #0 {15 ret void16}17 18; M1: attributes #0 = { "branch-target-enforcement" }19attributes #0 = { "branch-target-enforcement" }20