Changeset View
Changeset View
Standalone View
Standalone View
test/tools/gold/X86/thinlto_prefix_replace.ll
; Check that changing the output path via thinlto-prefix-replace works | ; Check that changing the output path via thinlto-prefix-replace works | ||||
; RUN: mkdir -p %T/oldpath | ; RUN: mkdir -p %t/oldpath | ||||
; RUN: opt -module-summary %s -o %T/oldpath/thinlto_prefix_replace.o | ; RUN: opt -module-summary %s -o %t/oldpath/thinlto_prefix_replace.o | ||||
; Ensure that there is no existing file at the new path, so we properly | ; Ensure that there is no existing file at the new path, so we properly | ||||
; test the creation of the new file there. | ; test the creation of the new file there. | ||||
; RUN: rm -f %T/newpath/thinlto_prefix_replace.o.thinlto.bc | ; RUN: rm -f %t/newpath/thinlto_prefix_replace.o.thinlto.bc | ||||
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \ | ; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \ | ||||
; RUN: --plugin-opt=thinlto \ | ; RUN: --plugin-opt=thinlto \ | ||||
; RUN: --plugin-opt=thinlto-index-only \ | ; RUN: --plugin-opt=thinlto-index-only \ | ||||
; RUN: --plugin-opt=thinlto-prefix-replace="%T/oldpath/;%T/newpath/" \ | ; RUN: --plugin-opt=thinlto-prefix-replace="%t/oldpath/;%t/newpath/" \ | ||||
; RUN: -shared %T/oldpath/thinlto_prefix_replace.o -o %T/thinlto_prefix_replace | ; RUN: -shared %t/oldpath/thinlto_prefix_replace.o -o %t/thinlto_prefix_replace | ||||
; RUN: ls %T/newpath/thinlto_prefix_replace.o.thinlto.bc | ; RUN: ls %t/newpath/thinlto_prefix_replace.o.thinlto.bc | ||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" | ||||
define void @f() { | define void @f() { | ||||
entry: | entry: | ||||
ret void | ret void | ||||
} | } |