• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
2# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml -o %t-x86_64.o
3# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
4# RUN: llvm-as %p/Inputs/armv7-ios.ll -o %t-ir-armv7.o
5# RUN: llvm-as %p/Inputs/x64-osx.ll -o %t-ir-x86_64.o
6
7# RUN: llvm-ar cr %t.empty.a
8# RUN: not llvm-lipo %t.empty.a -create -output /dev/null 2>&1 | FileCheck --check-prefix=EMPTY-ARCHIVE %s
9
10# RUN: llvm-ar cr %t.different_architectures.a %t-i386.o %t-x86_64.o
11# RUN: not llvm-lipo %t.different_architectures.a -create -output /dev/null 2>&1 | FileCheck --check-prefix=ARCHIVE-WITH-DIFFERENT-ARCHS %s
12
13# RUN: llvm-ar cr %t.contains_fat_binary.a %t-universal.o
14# RUN: not llvm-lipo %t.contains_fat_binary.a -create -output /dev/null 2>&1 | FileCheck --check-prefix=ARCHIVE-WITH-FAT-BINARY %s
15
16# RUN: llvm-ar cr %t-i386-lib.a %t-i386.o
17# RUN: llvm-lipo %t-i386-lib.a %t-x86_64.o -create -output %t-i386-x86_64-universal.o
18# RUN: llvm-lipo %t-i386-x86_64-universal.o -info | FileCheck --check-prefix=INFO-i386-x86_64 %s
19# RUN: llvm-lipo %t-i386-x86_64-universal.o -thin i386 -output %t-extracted-i386-lib.a
20# RUN: cmp %t-extracted-i386-lib.a %t-i386-lib.a
21# RUN: llvm-lipo %t-i386-x86_64-universal.o -thin x86_64 -output %t-extracted-x86_64.o
22# RUN: cmp %t-extracted-x86_64.o %t-x86_64.o
23
24# RUN: llvm-ar cr %t-ir-armv7-lib.a %t-ir-armv7.o
25# RUN: llvm-lipo %t-ir-armv7-lib.a %t-ir-x86_64.o -create -output %t-ir-armv7-x86_64-universal.o
26# RUN: llvm-lipo %t-ir-armv7-x86_64-universal.o -thin armv7 -output %t-ir-extracted-armv7-lib.a
27# RUN: cmp %t-ir-extracted-armv7-lib.a %t-ir-armv7-lib.a
28# RUN: llvm-lipo %t-ir-armv7-x86_64-universal.o -thin x86_64 -output %t-ir-extracted-x86_64.o
29# RUN: cmp %t-ir-extracted-x86_64.o %t-ir-x86_64.o
30
31# RUN: llvm-ar cr %t.different_types0.a %t-i386.o %t-ir-x86_64.o
32# RUN: not llvm-lipo -create %t.different_types0.a -output /dev/null 2>&1 | FileCheck --check-prefix=ARCHIVE-WITH-MACHO-AND-IR %s
33# RUN: llvm-ar cr %t.different_types1.a %t-ir-x86_64.o %t-i386.o
34# RUN: not llvm-lipo -create %t.different_types1.a -output /dev/null 2>&1 | FileCheck --check-prefix=ARCHIVE-WITH-IR-AND-MACHO %s
35# RUN: llvm-ar cr %t.different_architectures_ir.a %t-ir-x86_64.o %t-ir-armv7.o
36# RUN: not llvm-lipo -create %t.different_architectures_ir.a -output /dev/null 2>&1 | FileCheck --check-prefix=ARCHIVE-WITH-DIFFERENT-ARCHS %s
37
38# EMPTY-ARCHIVE: empty archive
39# ARCHIVE-WITH-DIFFERENT-ARCHS: all members must match
40# ARCHIVE-WITH-MACHO-AND-IR: is an LLVM IR object, while previous archive member {{.*}} was a MachO
41# ARCHIVE-WITH-IR-AND-MACHO: is a MachO, while previous archive member {{.*}} was an IR LLVM object
42# ARCHIVE-WITH-FAT-BINARY: fat file (not allowed in an archive)
43#
44# INFO-i386-x86_64: i386 x86_64
45