[llvm] r283681 - ThinLTO: Fix Gold test after caching fix in r283655

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 8 15:49:29 PDT 2016


Author: mehdi_amini
Date: Sat Oct  8 17:49:28 2016
New Revision: 283681

URL: http://llvm.org/viewvc/llvm-project?rev=283681&view=rev
Log:
ThinLTO: Fix Gold test after caching fix in r283655

(I don't have Gold available, so this is speculative)

Modified:
    llvm/trunk/test/tools/gold/X86/cache.ll

Modified: llvm/trunk/test/tools/gold/X86/cache.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/cache.ll?rev=283681&r1=283680&r2=283681&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/cache.ll (original)
+++ llvm/trunk/test/tools/gold/X86/cache.ll Sat Oct  8 17:49:28 2016
@@ -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 \




More information about the llvm-commits mailing list