1 # RUN: yaml2obj %p/Inputs/armv7-slice-big.yaml -o %t-armv7big.o
2 # RUN: yaml2obj %p/Inputs/i386-x86_64-armv7-arm64-universal.yaml -o %t-universal.o
4 # RUN: llvm-lipo %t-universal.o -replace armv7 %t-armv7big.o -o %t.o
5 # RUN: llvm-objdump %t.o -m --universal-headers | FileCheck --check-prefix=ARMV7_BIG %s
6 # RUN: llvm-lipo %t.o -thin armv7 -o %t-armv7-out.o
7 # RUN: cmp %t-armv7big.o %t-armv7-out.o
8 # ARMV7_BIG: architecture i386
9 # ARMV7_BIG: offset 4096
10 # ARMV7_BIG: align 2^12 (4096)
11 # ARMV7_BIG-NEXT: architecture x86_64
12 # ARMV7_BIG: offset 8192
13 # ARMV7_BIG: align 2^12 (4096)
14 # ARMV7_BIG-NEXT: architecture armv7
15 # ARMV7_BIG: offset 16384
16 # ARMV7_BIG: size 88128
17 # ARMV7_BIG: align 2^14 (16384)
18 # ARMV7_BIG-NEXT: architecture arm64
19 # ARMV7_BIG: offset 114688
21 # ARMV7_BIG: align 2^14 (16384)
23 # RUN: yaml2obj %p/Inputs/armv7-slice.yaml -o %t-armv7.o
24 # RUN: yaml2obj %p/Inputs/armv7_i386_non_default_alignment.yaml -o %t-universal-align.o
26 # RUN: llvm-lipo %t-universal-align.o -replace armv7 %t-armv7.o -o %t2.o
27 # RUN: llvm-objdump %t2.o -m --universal-headers | FileCheck --check-prefix=ARMV7_ALIGN_SWAP %s
28 # RUN: llvm-lipo %t2.o -thin armv7 -o %t-armv7-out2.o
29 # RUN: cmp %t-armv7.o %t-armv7-out2.o
30 # ARMV7_ALIGN_SWAP: architecture i386
31 # ARMV7_ALIGN_SWAP: offset 4096
32 # ARMV7_ALIGN_SWAP: align 2^12 (4096)
33 # ARMV7_ALIGN_SWAP-NEXT: architecture armv7
34 # ARMV7_ALIGN_SWAP: offset 16384
35 # ARMV7_ALIGN_SWAP: align 2^14 (16384)