57 lines · plain
1# RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o2# RUN: yaml2obj %p/Inputs/x86_64-slice.yaml -o %t-x86_64.o3# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o4# RUN: llvm-as %p/Inputs/armv7-ios.ll -o %t-ir-armv7.o5# RUN: llvm-as %p/Inputs/x64-osx.ll -o %t-ir-x86_64.o6 7# RUN: llvm-ar cr %t.empty.a8# RUN: not llvm-lipo %t.empty.a -create -output /dev/null 2>&1 | FileCheck --check-prefix=EMPTY-ARCHIVE %s9 10# RUN: llvm-ar cr %t.different_architectures.a %t-i386.o %t-x86_64.o11# RUN: not llvm-lipo %t.different_architectures.a -create -output /dev/null 2>&1 | FileCheck --check-prefix=ARCHIVE-WITH-DIFFERENT-ARCHS %s12 13# RUN: llvm-ar cr %t.contains_fat_binary.a %t-universal.o14# RUN: not llvm-lipo %t.contains_fat_binary.a -create -output /dev/null 2>&1 | FileCheck --check-prefix=ARCHIVE-WITH-FAT-BINARY %s15 16# RUN: llvm-ar cr %t-i386-lib.a %t-i386.o17# RUN: llvm-lipo %t-i386-lib.a %t-x86_64.o -create -output %t-i386-x86_64-universal.o18# RUN: llvm-lipo %t-i386-lib.a -info | FileCheck --check-prefix=INFO-i386 %s19# RUN: llvm-lipo %t-i386-x86_64-universal.o -info | FileCheck --check-prefix=INFO-i386-x86_64 %s20# RUN: llvm-lipo %t-i386-x86_64-universal.o -thin i386 -output %t-extracted-i386-lib.a21# RUN: cmp %t-extracted-i386-lib.a %t-i386-lib.a22# RUN: llvm-lipo %t-i386-x86_64-universal.o -thin x86_64 -output %t-extracted-x86_64.o23# RUN: cmp %t-extracted-x86_64.o %t-x86_64.o24 25# RUN: llvm-ar cr %t-ir-armv7-lib.a %t-ir-armv7.o26# RUN: llvm-lipo %t-ir-armv7-lib.a %t-ir-x86_64.o -create -output %t-ir-armv7-x86_64-universal.o27# RUN: llvm-lipo %t-ir-armv7-x86_64-universal.o -thin armv7 -output %t-ir-extracted-armv7-lib.a28# RUN: cmp %t-ir-extracted-armv7-lib.a %t-ir-armv7-lib.a29# RUN: llvm-lipo %t-ir-armv7-x86_64-universal.o -thin x86_64 -output %t-ir-extracted-x86_64.o30# RUN: cmp %t-ir-extracted-x86_64.o %t-ir-x86_64.o31 32# RUN: llvm-ar cr %t.different_types0-i386.a %t-i386.o33# RUN: llvm-ar cr %t.different_types0-x86_64.a %t-x86_64.o %t-ir-x86_64.o34# RUN: llvm-lipo -create %t.different_types0-i386.a %t.different_types0-x86_64.a -output %t.different_types0-universal.a35# RUN: llvm-lipo %t.different_types0-universal.a -thin i386 -output %t.different_types0-extracted-i386.a36# RUN: llvm-lipo %t.different_types0-universal.a -thin x86_64 -output %t.different_types0-extracted-x86_64.a37# RUN: cmp %t.different_types0-extracted-i386.a %t.different_types0-i386.a38# RUN: cmp %t.different_types0-extracted-x86_64.a %t.different_types0-x86_64.a39 40# RUN: llvm-ar cr %t.different_types1-i386.a %t-i386.o41# RUN: llvm-ar cr %t.different_types1-x86_64.a %t-ir-x86_64.o %t-x86_64.o42# RUN: llvm-lipo -create %t.different_types1-x86_64.a %t.different_types1-i386.a -output %t.different_types1-universal.a43# RUN: llvm-lipo %t.different_types1-universal.a -thin i386 -output %t.different_types1-extracted-i386.a44# RUN: llvm-lipo %t.different_types1-universal.a -thin x86_64 -output %t.different_types1-extracted-x86_64.a45# RUN: cmp %t.different_types1-extracted-i386.a %t.different_types1-i386.a46# RUN: cmp %t.different_types1-extracted-x86_64.a %t.different_types1-x86_64.a47 48# RUN: llvm-ar cr %t.different_architectures_ir.a %t-ir-x86_64.o %t-ir-armv7.o49# RUN: not llvm-lipo -create %t.different_architectures_ir.a -output /dev/null 2>&1 | FileCheck --check-prefix=ARCHIVE-WITH-DIFFERENT-ARCHS %s50 51# EMPTY-ARCHIVE: empty archive52# ARCHIVE-WITH-DIFFERENT-ARCHS: all members must match53# ARCHIVE-WITH-FAT-BINARY: fat file (not allowed in an archive)54#55# INFO-i386: i38656# INFO-i386-x86_64: i386 x86_6457