12 lines · plain
1# RUN: llc -filetype=obj -mtriple x86_64-apple-macosx -o %t.x86-64.o \2# RUN: %S/Inputs/main-ret-0.ll3# RUN: llc -filetype=obj -mtriple arm64-apple-macosx -o %t.arm64.o \4# RUN: %S/Inputs/main-ret-0.ll5# RUN: llvm-lipo -create -output %t.universal.o -arch x86_64 %t.x86-64.o \6# RUN: -arch arm64 %t.arm64.o7# RUN: llvm-jitlink -noexec -triple arm64-apple-macosx %t.universal.o8#9# REQUIRES: x86-registered-target && aarch64-registered-target10#11# Check that universal binaries don't raise "not a valid object file" errors.12