36 lines · plain
1# RUN: yaml2obj %p/Inputs/armv7-slice-big.yaml -o %t-armv7big.o2# RUN: yaml2obj %p/Inputs/i386-x86_64-armv7-arm64-universal.yaml -o %t-universal.o3 4# RUN: llvm-lipo %t-universal.o -replace armv7 %t-armv7big.o -o %t.o5# RUN: llvm-objdump %t.o -m --universal-headers | FileCheck --check-prefix=ARMV7_BIG %s6# RUN: llvm-lipo %t.o -thin armv7 -o %t-armv7-out.o7# RUN: cmp %t-armv7big.o %t-armv7-out.o8# ARMV7_BIG: architecture i3869# ARMV7_BIG: offset 409610# ARMV7_BIG: align 2^12 (4096)11# ARMV7_BIG-NEXT: architecture x86_6412# ARMV7_BIG: offset 819213# ARMV7_BIG: align 2^12 (4096)14# ARMV7_BIG-NEXT: architecture armv715# ARMV7_BIG: offset 1638416# ARMV7_BIG: size 8812817# ARMV7_BIG: align 2^14 (16384)18# ARMV7_BIG-NEXT: architecture arm6419# ARMV7_BIG: offset 11468820# ARMV7_BIG: size 51621# ARMV7_BIG: align 2^14 (16384)22 23# RUN: yaml2obj %p/Inputs/armv7-slice.yaml -o %t-armv7.o24# RUN: yaml2obj %p/Inputs/armv7_i386_non_default_alignment.yaml -o %t-universal-align.o25 26# RUN: llvm-lipo %t-universal-align.o -replace armv7 %t-armv7.o -o %t2.o27# RUN: llvm-objdump %t2.o -m --universal-headers | FileCheck --check-prefix=ARMV7_ALIGN_SWAP %s28# RUN: llvm-lipo %t2.o -thin armv7 -o %t-armv7-out2.o29# RUN: cmp %t-armv7.o %t-armv7-out2.o30# ARMV7_ALIGN_SWAP: architecture i38631# ARMV7_ALIGN_SWAP: offset 409632# ARMV7_ALIGN_SWAP: align 2^12 (4096)33# ARMV7_ALIGN_SWAP-NEXT: architecture armv734# ARMV7_ALIGN_SWAP: offset 1638435# ARMV7_ALIGN_SWAP: align 2^14 (16384)36