]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/LTO/Resolution/X86/cache-prevailing.ll
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / LTO / Resolution / X86 / cache-prevailing.ll
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
10 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
11 target triple = "x86_64-pc-windows-msvc19.11.0"
12
13 @foo = linkonce constant i32 1, comdat
14 $foo = comdat any
15
16 define i32* @bar() {
17   ret i32* @foo
18 }