brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 11b7e9d Raw
34 lines · plain
1; RUN: opt -module-hash -module-summary %s -o %t.bc2; RUN: opt -module-hash -module-summary %p/Inputs/cache.ll -o %t2.bc3 4; Check that the generating object files is working without cache5; RUN: rm -Rf %t.thin.out6; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc  %t.bc -exported-symbol=main 7; RUN: ls %t.thin.out | count 28 9; Same with cache10; RUN: rm -Rf %t.thin.out11; RUN: rm -Rf %t.cache && mkdir %t.cache12; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc  %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache 13; RUN: ls %t.thin.out | count 214; RUN: ls %t.cache | count 315 16; Same with hot cache17; RUN: rm -Rf %t.thin.out18; RUN: rm -Rf %t.cache && mkdir %t.cache19; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc  %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache 20; RUN: ls %t.thin.out | count 221; RUN: ls %t.cache | count 322 23; Check the name of object in directory has arch name included.24; RUN: ls %t.thin.out | grep x86_64.thinlto.o | count 225 26 27target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"28target triple = "x86_64-apple-macosx10.11.0"29 30define void @globalfunc() #0 {31entry:32  ret void33}34