19 lines · plain
1; RUN: opt --mtriple x86_64-unknown-linux-gnu < %s -passes="embed-bitcode" -S | FileCheck %s2; RUN: opt --mtriple x86_64-unknown-linux-gnu < %s -passes="embed-bitcode<thinlto>" -S | FileCheck %s3; RUN: opt --mtriple x86_64-unknown-linux-gnu < %s -passes="embed-bitcode<emit-summary>" -S | FileCheck %s4; RUN: opt --mtriple x86_64-unknown-linux-gnu < %s -passes="embed-bitcode<thinlto;emit-summary>" -S | FileCheck %s5 6@a = global i32 17 8; CHECK: @a = global i32 19;; Make sure the module is in the correct section.10; CHECK: @llvm.embedded.object = private constant {{.*}}, section ".llvm.lto", align 111 12;; Ensure that the metadata is in llvm.compiler.used.13; CHECK: @llvm.compiler.used = appending global [1 x ptr] [ptr @llvm.embedded.object], section "llvm.metadata"14 15;; Make sure the metadata correlates to the .llvm.lto section.16; CHECK: !llvm.embedded.objects = !{!1}17; CHECK: !0 = !{}18; CHECK: !{ptr @llvm.embedded.object, !".llvm.lto"}19