brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · d1b2cad Raw
49 lines · plain
1; REQUIRES: x862 3; Test that we compile regular LTO inputs in a single task but handle ThinLTO4; modules in separate tasks.5 6; RUN: rm -rf %t; split-file %s %t7; RUN: llvm-as %t/foo.ll -o %t/foo.o8; RUN: llvm-as %t/bar.ll -o %t/bar.o9; RUN: %lld -dylib -save-temps %t/foo.o %t/bar.o -o %t/test10; RUN: llvm-objdump -d --no-show-raw-insn %t/test.lto.o | FileCheck %s --check-prefix=ALL11; RUN: llvm-objdump -d --no-show-raw-insn %t/test | FileCheck %s --check-prefix=ALL12 13; RUN: rm -rf %t; split-file %s %t14; RUN: opt -module-summary %t/foo.ll -o %t/foo.o15; RUN: opt -module-summary %t/bar.ll -o %t/bar.o16; RUN: %lld -dylib -save-temps %t/foo.o %t/bar.o -o %t/test17; RUN: llvm-objdump -d --no-show-raw-insn %t/test1.lto.o | FileCheck %s --check-prefix=FOO18; RUN: llvm-objdump -d --no-show-raw-insn %t/test2.lto.o | FileCheck %s --check-prefix=MAIN19; RUN: llvm-objdump -d --no-show-raw-insn %t/test | FileCheck %s --check-prefix=ALL20 21; FOO:      <_foo>:22; FOO-NEXT: retq23 24; MAIN:      <_bar>:25; MAIN-NEXT: retq26 27; ALL:      <_foo>:28; ALL-NEXT: retq29; ALL:      <_bar>:30; ALL-NEXT: retq31 32;--- foo.ll33 34target triple = "x86_64-apple-macosx10.15.0"35target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"36 37define void @foo() {38  ret void39}40 41;--- bar.ll42 43target triple = "x86_64-apple-macosx10.15.0"44target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"45 46define void @bar() {47  ret void48}49