1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/tools/llvm-lipo/info-universal-binary-ir.test
Adrien Guinet add1ee3a12 [llvm-lipo] Add support for bitcode files
A Mach-O universal binary may contain bitcode as a slice.
This diff adds proper handling of such binaries to llvm-lipo.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D85740
2020-08-25 21:11:18 -07:00

17 lines
627 B
Plaintext

# RUN: llvm-as %p/Inputs/armv7-ios.ll -o %t-armv7.o
# RUN: llvm-as %p/Inputs/arm64-ios.ll -o %t-arm64.o
# RUN: llvm-as %p/Inputs/x64-osx.ll -o %t-x64.o
# RUN: llvm-lipo %t-arm64.o %t-x64.o -create -output %t-universal0.o
# RUN: llvm-lipo -info %t-universal0.o | FileCheck %s
#
# CHECK: Architectures in the fat file: {{.*}} are: x86_64 arm64
# Test that, despites the "thumbv7" triple present in armv7-ios.ll,
# architecture is still reported as armv7
# RUN: llvm-lipo %t-armv7.o -create -output %t-universal1.o
# RUN: llvm-lipo -info %t-universal1.o | FileCheck --check-prefix=ARMV7 %s
#
# ARMV7: armv7
# ARMV7-NOT: thumbv7