xref: /llvm-project/llvm/test/tools/llvm-lipo/create-arch-asm.test (revision 79e5c5004e9a6efafa62c6c1b8e7d46c8669fb0c)
1# REQUIRES: x86-registered-target && aarch64-registered-target
2# RUN: llvm-as %p/Inputs/arm64-asm.ll -o %t-arm64-asm.o
3# RUN: llvm-as %p/Inputs/x86_64-asm.ll -o %t-x86_64-asm.o
4
5# RUN: llvm-lipo %t-arm64-asm.o %t-x86_64-asm.o -create -output %t-universal.o
6# RUN: llvm-lipo %t-arm64-asm.o -arch x86_64 %t-x86_64-asm.o -create -output %t-universal-1.o
7# RUN: cmp %t-universal.o %t-universal-1.o
8# RUN: llvm-lipo -arch arm64 %t-arm64-asm.o -arch x86_64 %t-x86_64-asm.o -create -output %t-universal-2.o
9# RUN: cmp %t-universal.o %t-universal-2.o
10