brintos

brintos / llvm-project-archived public Read only

0
0
Text · 595 B · 20b2532 Raw
19 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, even if nothing has !type metadata7; on the ThinLTO side.8 9; M0: @g = global i32 010@g = global i32 011 12; M1: define void @__cfi_check() #013define void @__cfi_check() #0 {14  ret void15}16 17; M1: attributes #0 = { "branch-target-enforcement" }18attributes #0 = { "branch-target-enforcement" }19