xref: /llvm-project/llvm/test/tools/llvm-lipo/info-universal-binary-ir.test (revision c6f7ac0071a1849a9f8046e2045e1631e224f1bd)
1# RUN: llvm-as %p/Inputs/armv7-ios.ll -o %t-armv7.o
2# RUN: llvm-as %p/Inputs/arm64-ios.ll -o %t-arm64.o
3# RUN: llvm-as %p/Inputs/x64-osx.ll -o %t-x64.o
4
5# RUN: llvm-lipo %t-arm64.o %t-x64.o -create -output %t-universal0.o
6# RUN: llvm-lipo -info %t-universal0.o | FileCheck %s
7#
8# CHECK: Architectures in the fat file: {{.*}} are: x86_64 arm64
9
10# Test that, despites the "thumbv7" triple present in armv7-ios.ll,
11# architecture is still reported as armv7
12# RUN: llvm-lipo %t-armv7.o -create -output %t-universal1.o
13# RUN: llvm-lipo -info %t-universal1.o | FileCheck --check-prefix=ARMV7 %s
14#
15# ARMV7: armv7
16# ARMV7-NOT: thumbv7
17