brintos

brintos / llvm-project-archived public Read only

0
0
Text · 961 B · 8871750 Raw
25 lines · plain
1; RUN: rm -rf %t && mkdir -p %t2; RUN: opt -module-hash -module-summary %s -o %t/t.bc3; RUN: opt -module-hash -module-summary %S/Inputs/cache-import-lists3.ll -o %t/a.bc4; RUN: opt -module-hash -module-summary %S/Inputs/cache-import-lists4.ll -o %t/b.bc5 6; Tests that the hash for t is insensitive to the order of the modules.7 8; RUN: llvm-lto2 run -cache-dir %t/cache -o %t.o %t/t.bc %t/a.bc %t/b.bc -r=%t/t.bc,main,plx -r=%t/t.bc,f1,lx -r=%t/t.bc,f2,lx -r=%t/a.bc,f1,plx -r=%t/b.bc,f2,plx9; RUN: ls %t/cache | count 310 11; RUN: llvm-lto2 run -cache-dir %t/cache -o %t.o %t/b.bc %t/a.bc %t/t.bc -r=%t/t.bc,main,plx -r=%t/t.bc,f1,lx -r=%t/t.bc,f2,lx -r=%t/a.bc,f1,plx -r=%t/b.bc,f2,plx12; RUN: ls %t/cache | count 313 14target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"15target triple = "x86_64-unknown-linux-gnu"16 17define void @main() {18  call void @f1()19  call void @f2()20  ret void21}22 23declare void @f1()24declare void @f2()25