• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Tests whether the cache is sensitive to the prevailing bit.
2; RUN: rm -rf %t.cache
3; RUN: opt -module-hash -module-summary -o %t.bc %s
4; RUN: llvm-lto2 run -o %t.o %t.bc -cache-dir %t.cache \
5; RUN:   -r %t.bc,foo,p -r %t.bc,bar,px
6; RUN: llvm-lto2 run -o %t.o %t.bc -cache-dir %t.cache \
7; RUN:   -r %t.bc,foo, -r %t.bc,bar,px
8; RUN: ls %t.cache | count 2
9
10target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
11target triple = "x86_64-pc-windows-msvc19.11.0"
12
13@foo = linkonce constant i32 1, comdat
14$foo = comdat any
15
16define i32* @bar() {
17  ret i32* @foo
18}
19