Adrien Guinet | c6f7ac0 | 2020-08-25 18:55:50 -0700 | [diff] [blame] | 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 | |
| 4 | # RUN: llvm-lipo %t-armv7.o %t-arm64.o -create -output %t-universal.o |
| 5 | # RUN: llvm-lipo -arch armv7 %t-armv7.o -arch arm64 %t-arm64.o -create -output %t-universal-1.o |
| 6 | # RUN: cmp %t-universal.o %t-universal-1.o |
| 7 | # |
| 8 | # RUN: not llvm-lipo -arch armv7 %t-arm64.o -create -output /dev/null 2>&1 | FileCheck --check-prefix=ARCH_NOT_MATCHED %s |
| 9 | # ARCH_NOT_MATCHED: error: specified architecture: armv7 for file: {{.*}} does not match the file's architecture (arm64) |