18 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 4# RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal.o5# RUN: llvm-lipo %t-i386.o -arch x86_64 %t-x86_64.o -create -output %t-universal-1.o6# RUN: cmp %t-universal.o %t-universal-1.o7# RUN: llvm-lipo -arch i386 %t-i386.o -arch x86_64 %t-x86_64.o -create -output %t-universal-2.o8# RUN: cmp %t-universal.o %t-universal-2.o9#10# RUN: not llvm-lipo -arch armv7 %t-i386.o -arch x86_64 %t-x86_64.o -create -output /dev/null 2>&1 | FileCheck --check-prefix=ARCH_NOT_MATCHED %s11# ARCH_NOT_MATCHED: error: specified architecture: armv7 for file: {{.*}} does not match the file's architecture (i386)12#13# # RUN: not llvm-lipo -arch i3866 %t-32.o -create -o /dev/null 2>&1 | FileCheck --check-prefix=INVALID_ARCH %s14# INVALID_ARCH: error: Invalid architecture: i386615#16# RUN: not llvm-lipo -arch i386 %t-33.o -create -o /dev/null 2>&1 | FileCheck -DMSG=%errc_ENOENT --check-prefix=INVALID_FILE %s17# INVALID_FILE: [[MSG]]18