mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
062b5d40cb
for 32 bit signed, 32 bit unsigned, and 64 bit pointers." This reverts 57076d3199fc2b0af4a3736b7749dd5462cacda5. Original review at https://reviews.llvm.org/D64931. Review for added fix at https://reviews.llvm.org/D66843. llvm-svn: 371568
34 lines
1.2 KiB
LLVM
34 lines
1.2 KiB
LLVM
; RUN: opt -module-hash -module-summary %s -o %t.bc
|
|
; RUN: opt -module-hash -module-summary %p/Inputs/cache.ll -o %t2.bc
|
|
|
|
; Check that the generating object files is working without cache
|
|
; RUN: rm -Rf %t.thin.out
|
|
; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc %t.bc -exported-symbol=main
|
|
; RUN: ls %t.thin.out | count 2
|
|
|
|
; Same with cache
|
|
; RUN: rm -Rf %t.thin.out
|
|
; RUN: rm -Rf %t.cache && mkdir %t.cache
|
|
; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache
|
|
; RUN: ls %t.thin.out | count 2
|
|
; RUN: ls %t.cache | count 3
|
|
|
|
; Same with hot cache
|
|
; RUN: rm -Rf %t.thin.out
|
|
; RUN: rm -Rf %t.cache && mkdir %t.cache
|
|
; RUN: llvm-lto -thinlto-save-objects=%t.thin.out -thinlto-action=run %t2.bc %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache
|
|
; RUN: ls %t.thin.out | count 2
|
|
; RUN: ls %t.cache | count 3
|
|
|
|
; Check the name of object in directory has arch name included.
|
|
; RUN: ls %t.thin.out | grep x86_64.thinlto.o | count 2
|
|
|
|
|
|
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-apple-macosx10.11.0"
|
|
|
|
define void @globalfunc() #0 {
|
|
entry:
|
|
ret void
|
|
}
|