|
@@ -1,5 +1,4 @@
|
|
-; shell required since the windows bot does not like the "(cd ..."
|
|
|
|
-; REQUIRES: x86-registered-target, shell
|
|
|
|
|
|
+; REQUIRES: x86-registered-target
|
|
|
|
|
|
; RUN: opt -module-summary -o %t1.o %s
|
|
; RUN: opt -module-summary -o %t1.o %s
|
|
; RUN: opt -module-summary -o %t2.o %S/Inputs/thinlto_backend.ll
|
|
; RUN: opt -module-summary -o %t2.o %S/Inputs/thinlto_backend.ll
|
|
@@ -32,10 +31,14 @@
|
|
; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps=obj
|
|
; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps=obj
|
|
; RUN: llvm-dis %t1.s.3.import.bc -o - | FileCheck --check-prefix=CHECK-IMPORT %s
|
|
; RUN: llvm-dis %t1.s.3.import.bc -o - | FileCheck --check-prefix=CHECK-IMPORT %s
|
|
; RUN: mkdir -p %T/dir1
|
|
; RUN: mkdir -p %T/dir1
|
|
-; RUN: (cd %T/dir1 && %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps=cwd)
|
|
|
|
|
|
+; RUN: cd %T/dir1
|
|
|
|
+; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps=cwd
|
|
|
|
+; RUN: cd ../..
|
|
; RUN: llvm-dis %T/dir1/*1.s.3.import.bc -o - | FileCheck --check-prefix=CHECK-IMPORT %s
|
|
; RUN: llvm-dis %T/dir1/*1.s.3.import.bc -o - | FileCheck --check-prefix=CHECK-IMPORT %s
|
|
; RUN: mkdir -p %T/dir2
|
|
; RUN: mkdir -p %T/dir2
|
|
-; RUN: (cd %T/dir2 && %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps)
|
|
|
|
|
|
+; RUN: cd %T/dir2
|
|
|
|
+; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps
|
|
|
|
+; RUN: cd ../..
|
|
; RUN: llvm-dis %T/dir2/*1.s.3.import.bc -o - | FileCheck --check-prefix=CHECK-IMPORT %s
|
|
; RUN: llvm-dis %T/dir2/*1.s.3.import.bc -o - | FileCheck --check-prefix=CHECK-IMPORT %s
|
|
; CHECK-IMPORT: define available_externally void @f2()
|
|
; CHECK-IMPORT: define available_externally void @f2()
|
|
; RUN: llvm-nm %t3.o | FileCheck --check-prefix=CHECK-OBJ %s
|
|
; RUN: llvm-nm %t3.o | FileCheck --check-prefix=CHECK-OBJ %s
|