From e3e8677385b8cd6ccdba9354d2decab3089b5168 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Sat, 8 Oct 2016 22:49:28 +0000 Subject: [PATCH] ThinLTO: Fix Gold test after caching fix in r283655 (I don't have Gold available, so this is speculative) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283681 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/gold/X86/cache.ll | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/test/tools/gold/X86/cache.ll b/test/tools/gold/X86/cache.ll index 8502bc9126a..756710e482b 100644 --- a/test/tools/gold/X86/cache.ll +++ b/test/tools/gold/X86/cache.ll @@ -1,7 +1,21 @@ +; Verify that enabling caching is ignoring module when we emit them without hash. ; RUN: opt -module-summary %s -o %t.o ; RUN: opt -module-summary %p/Inputs/cache.ll -o %t2.o -; Verify that enabling caching is working +; RUN: rm -Rf %t.cache && mkdir %t.cache +; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \ +; RUN: --plugin-opt=thinlto \ +; RUN: --plugin-opt=cache-dir=%t.cache \ +; RUN: -o %t3.o %t2.o %t.o + +; RUN: ls %t.cache | count 0 + + +; Verify that enabling caching is working with module with hash. + +; RUN: opt -module-hash -module-summary %s -o %t.o +; RUN: opt -module-hash -module-summary %p/Inputs/cache.ll -o %t2.o + ; RUN: rm -Rf %t.cache && mkdir %t.cache ; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \ ; RUN: --plugin-opt=thinlto \ -- 2.11.0