Home
last modified time | relevance | path

Searched refs:universal (Results 1 – 25 of 80) sorted by relevance

1234

/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/MachO/
H A Duniversal-object.test6 ## Case 1: copy a universal object containing regular Mach-O objects.
7 # RUN: llvm-lipo %t.i386 %t.x86_64 -create -output %t.universal
8 # RUN: llvm-objcopy %t.universal %t.universal.copy
10 # RUN: llvm-lipo %t.universal.copy -thin i386 -output %t.i386.copy
19 # RUN: llvm-objcopy %t.universal.containing.archive %t.universal.containing.archive.copy
26 ## Case 3: copy an archive containing a universal object.
27 # RUN: llvm-ar cr %t.archive.containing.universal %t.universal
28 # RUN: llvm-objcopy %t.archive.containing.universal %t.archive.containing.universal.copy
33 # RUN: not llvm-objcopy %t.universal.containing.bitcode %t.universal.containing.bitcode.copy 2>&1 \
37 # RUN: llvm-ar cr %t.archive.universal.bitcode %t.universal.containing.bitcode
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-lipo/
H A Dcreate-default-alignment.test4 # RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal-llvm.o
6 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
7 # RUN: cmp %t-universal-llvm.o %t-universal.o
12 # RUN: llvm-lipo %t-arm64.o %t-armv7.o %t-universal.o -create -output %t-universal-2.o
13 # RUN: llvm-lipo %t-universal-2.o -thin x86_64 -output %t-x86_64_extracted.o
15 # RUN: llvm-lipo %t-universal-2.o -thin armv7 -output %t-armv7-extracted.o
18 # RUN: llvm-objdump %t-universal-2.o -m --universal-headers | FileCheck %s
H A Dreplace-invalid-input.test3 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
5 # RUN: not llvm-lipo %t-universal.o -replace %t-32.o 2>&1 | FileCheck --check-prefix=MISSING_ARG %s
8 # RUN: not llvm-lipo %t-universal.o -replace i386 %t-32.o 2>&1 | FileCheck --check-prefix=OUTPUT_FI…
11 # RUN: not llvm-lipo %t-universal.o %t-universal.o -replace i386 %t-32.o -o %t.o 2>&1 | FileCheck -…
14 # RUN: not llvm-lipo %t-universal.o -replace i386 %t-33.o -o %t.o 2>&1 | FileCheck -DMSG=%errc_ENO…
17 # RUN: not llvm-lipo %t-universal.o -replace i3866 %t-32.o -o %t.o 2>&1 | FileCheck --check-prefix=…
20 # RUN: not llvm-lipo %t-universal.o -replace arm64 %t-32.o -o %t.o 2>&1 | FileCheck --check-prefix=…
23 # RUN: not llvm-lipo %t-universal.o -replace arm64 %t-arm64.o -o %t.o 2>&1 | FileCheck --check-pref…
26 # RUN: not llvm-lipo %t-universal.o -replace i386 %t-32.o -replace arm64 %t-universal.o -o %t.o 2>&…
29 # RUN: not llvm-lipo %t-universal.o -replace i386 %t-32.o -replace i386 %t-32.o -o %t.o 2>&1 | File…
H A Dextract.test1 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
3 # RUN: not llvm-lipo %t-universal.o -extract arm64_32 -output /dev/null 2>&1 | FileCheck --check-pr…
10 # RUN: llvm-lipo -create %t-i386.o -output %t-i386-universal.o
11 # RUN: llvm-lipo -extract i386 %t-universal.o -output %t-i386-universal-extracted.o
12 # RUN: cmp %t-i386-universal.o %t-i386-universal-extracted.o
13 # RUN: llvm-lipo -thin i386 %t-i386-universal-extracted.o -output %t-i386-thinned.o
H A Dsegalign.test3 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
7 # RUN: llvm-lipo %t-universal.o %t-arm64.o -create -o %t.o -segalign arm64 100
8 # RUN: llvm-objdump %t.o -m --universal-headers | FileCheck --check-prefix=CHECK_SMALL_ARM64 %s
23 # RUN: llvm-lipo %t-universal.o %t-arm64.o -create -o %t-nosegalign.o
33 # RUN: llvm-lipo %t-universal.o %t-armv7.o -create -o %t2.o -segalign armv7 100
34 # RUN: llvm-objdump %t2.o -m --universal-headers | FileCheck --check-prefix=CHECK_SMALL_ARMV7 %s
49 # RUN: llvm-lipo %t-universal.o %t-armv7.o -create -o %t2-nosegalign.o
69 # RUN: yaml2obj %p/Inputs/i386-x86_64-armv7-arm64-universal.yaml -o %t-universal-big.o
71 # RUN: llvm-lipo %t-universal-big.o -replace armv7 %t-armv7-big.o -o %t3.o -segalign armv7 4
72 # RUN: llvm-objdump %t3.o -m --universal-headers | FileCheck --check-prefix=CHECK_REPLACE_ARMV7 %s
[all …]
H A Dcreate-arch.test4 # RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal.o
5 # RUN: llvm-lipo %t-i386.o -arch x86_64 %t-x86_64.o -create -output %t-universal-1.o
6 # RUN: cmp %t-universal.o %t-universal-1.o
7 # RUN: llvm-lipo -arch i386 %t-i386.o -arch x86_64 %t-x86_64.o -create -output %t-universal-2.o
8 # RUN: cmp %t-universal.o %t-universal-2.o
H A Dreplace-universal-binary.test2 # 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
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
H A Dcreate-archive-input.test3 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
13 # RUN: llvm-ar cr %t.contains_fat_binary.a %t-universal.o
17 # RUN: llvm-lipo %t-i386-lib.a %t-x86_64.o -create -output %t-i386-x86_64-universal.o
18 # RUN: llvm-lipo %t-i386-x86_64-universal.o -info | FileCheck --check-prefix=INFO-i386-x86_64 %s
19 # RUN: llvm-lipo %t-i386-x86_64-universal.o -thin i386 -output %t-extracted-i386-lib.a
21 # RUN: llvm-lipo %t-i386-x86_64-universal.o -thin x86_64 -output %t-extracted-x86_64.o
25 # RUN: llvm-lipo %t-ir-armv7-lib.a %t-ir-x86_64.o -create -output %t-ir-armv7-x86_64-universal.o
26 # RUN: llvm-lipo %t-ir-armv7-x86_64-universal.o -thin armv7 -output %t-ir-extracted-armv7-lib.a
28 # RUN: llvm-lipo %t-ir-armv7-x86_64-universal.o -thin x86_64 -output %t-ir-extracted-x86_64.o
H A Dthin-executable-universal-binary.test3 # RUN: yaml2obj %s -o %t-universal.o
5 # RUN: chmod a-x %t-universal.o
6 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o
9 # RUN: chmod a+x %t-universal.o
10 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32-ex.o
H A Dcreate-invalid-input.test2 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
7 # RUN: not llvm-lipo %t-universal.o %t-32.o -create -output %t.o 2>&1 | FileCheck --check-prefix=DU…
8 # DUPLICATE_ARCHS: have the same architecture i386 and therefore cannot be in the same universal bi…
H A Dinfo.test3 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
5 # RUN: llvm-lipo %t-universal.o %t-i386.o %t-universal.o %t-x86_64.o -info | FileCheck %s
H A Dcreate-arch-ir.test4 # 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
H A Dcreate-executable.test8 # RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal.o
9 # RUN: test ! -x %t-universal.o
12 # RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t-universal.o
13 # RUN: test -x %t-universal.o
H A Dcreate-compute-alignment.test5 # RUN: llvm-lipo %t-i386.o %t-CPU14.o %t-CPU10.o -create -output %t-universal.o
7 # RUN: llvm-objdump %t-universal.o -m --universal-headers | FileCheck %s
H A Dthin-universal-binary-ir.test4 # RUN: llvm-lipo %t-armv7.o %t-arm64.o -create -output %t-universal.o
5 # RUN: llvm-lipo %t-universal.o -thin arm64 -output %t-arm64.out
7 # RUN: llvm-lipo %t-universal.o -thin armv7 -output %t-armv7.out
H A Dthin-universal-binary.test9 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
10 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o
/llvm-project-15.0.7/llvm/test/Object/
H A Dnm-universal-binary.test1 RUN: llvm-nm --arch=all %p/Inputs/macho-universal.x86_64.i386 \
5 RUN: llvm-nm --arch=x86_64 %p/Inputs/macho-universal.x86_64.i386 \
7 RUN: not llvm-nm --arch=armv7m %p/Inputs/macho-universal.x86_64.i386 2>&1 \
9 RUN: not llvm-nm --arch=foobar %p/Inputs/macho-universal.x86_64.i386 2>&1 \
11 RUN: llvm-nm --arch=all %p/Inputs/macho-universal-archive.x86_64.i386 \
15 RUN: llvm-nm --arch=i386 %p/Inputs/macho-universal-archive.x86_64.i386 \
17 RUN: llvm-nm -o --arch=all %p/Inputs/macho-universal-archive.x86_64.i386 \
20 CHECK-OBJ: macho-universal.x86_64.i386 (for architecture x86_64):
22 CHECK-OBJ: macho-universal.x86_64.i386 (for architecture i386):
45 CHECK-AR: macho-universal-archive.x86_64.i386(foo.o) (for architecture i386):
[all …]
H A Dsize-trivial-macho.test13 RUN: llvm-size --arch all %p/Inputs/macho-universal.x86_64.i386 \
15 RUN: llvm-size --arch i386 %p/Inputs/macho-universal.x86_64.i386 \
17 RUN: llvm-size --arch all %p/Inputs/macho-universal-archive.x86_64.i386 \
19 RUN: llvm-size --arch x86_64 %p/Inputs/macho-universal-archive.x86_64.i386 \
78 u: 4096 0 0 4294971392 4294975488 100002000 {{.*}}/macho-universal.x86_64.i386 (for architecture x8…
79 u: 4096 0 0 8192 12288 3000 {{.*}}/macho-universal.x86_64.i386 (for architecture i386)
85 uAR: 136 0 0 32 168 a8 {{.*}}/macho-universal-archive.x86_64.i386(hello.o) (for architecture x86_64)
86 uAR: 5 4 0 0 9 9 {{.*}}/macho-universal-archive.x86_64.i386(foo.o) (for architecture i386)
89 uAR-x86_64: 136 0 0 32 168 a8 {{.*}}/macho-universal-archive.x86_64.i386(hello.o)
/llvm-project-15.0.7/llvm/test/tools/llvm-objdump/MachO/
H A Darchive-headers.test1 RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch al…
3 RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch al…
5 RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch al…
9 CHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
12 CHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
16 OFFSETS: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
19 OFFSETS: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
23 NON-VERBOSE: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
26 NON-VERBOSE: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
H A Duniversal-x86_64.i386.test1 RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -d --macho --no-show-raw-insn --full-leadin…
3 RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -d --no-show-raw-insn --full-leading-addr -…
5 RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 -d --macho --no-show-raw-insn --ful…
7 RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 --universal-headers --macho \
9 RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 --universal-headers --macho \
11 RUN: llvm-objdump %p/Inputs/macho-universal64.x86_64.i386 --universal-headers \
14 UEXE-all: macho-universal.x86_64.i386 (architecture x86_64):
19 UEXE-all: macho-universal.x86_64.i386 (architecture i386):
25 UArchive-i386: Archive : {{.*}}/macho-universal-archive.x86_64.i386
26 UArchive-i386: macho-universal-archive.x86_64.i386(foo.o):
/llvm-project-15.0.7/llvm/test/tools/llvm-libtool-darwin/
H A Duniversal-object-flattening.test1 ## This test checks that a universal object file is flattened correctly.
3 # RUN: yaml2obj %s -o %t-universal.o
13 # CHECK-NAMES: [[PREFIX]]-universal.o
20 # CHECK-SYMBOLS-NEXT: _arm64 in [[PREFIX]]-universal.o
29 # FORMAT-NEXT: [[PREFIX]]-universal.o
32 ## Passing both a universal file and an object file:
39 # BOTH-NAMES: [[PREFIX]]-universal.o
43 # BOTH-SYMBOLS-NEXT: _x86_64 in [[PREFIX]]-universal.o
79 # DOUBLE-NAMES: [[PREFIX]]-universal.o
82 # DOUBLE-SYMBOLS-NEXT: _x86_64 in [[PREFIX]]-universal.o
[all …]
H A Duniversal-bitcode-flattening.test1 ## This test checks that a universal bitcode file is flattened correctly.
6 # RUN: llvm-lipo %t-arm64.bc %t-x86_64.bc -create -output %t-universal.o
8 # RUN: llvm-libtool-darwin -static -o %t.lib %t-universal.o -arch_only arm64
14 # CHECK-NAMES: [[PREFIX]]-universal.o
21 # CHECK-SYMBOLS-NEXT: _arm64 in [[PREFIX]]-universal.o
30 # FORMAT-NEXT: [[PREFIX]]-universal.o
33 ## Passing both a universal file and a bitcode file:
40 # BOTH-NAMES: [[PREFIX]]-universal.o
44 # BOTH-SYMBOLS-NEXT: _x86_64 in [[PREFIX]]-universal.o
80 # DOUBLE-NAMES: [[PREFIX]]-universal.o
[all …]
/llvm-project-15.0.7/llvm/docs/CommandGuide/
H A Dllvm-lipo.rst1 llvm-lipo - LLVM tool for manipulating universal binaries
13 …e universal binaries from Mach-O files, extract regular object files from universal binaries, and …
48 Take a single universal binary input file and the thin flag followed by an architecture type.
54 Output a universal binary combining the input files.
58 Take a single universal binary input file and require the output flag to be specified.
60 Output a universal binary with the specified architecture slice in the
61 universal binary input replaced with the contents of the thin input file.
/llvm-project-15.0.7/llvm/tools/llvm-lipo/
H A DLipoOpts.td12 "architecture when creating a universal binary file. The "
34 "filename and arch_types. Groups universal binaries "
44 HelpText<"Create a universal output file containing only the specified "
49 HelpText<"Create a universal binary output file from the input "
56 "input_file in a universal binary. Requires -output option">;
/llvm-project-15.0.7/llvm/test/DebugInfo/
H A Dsymbolize-macho-universal.test1 RUN: llvm-symbolizer --no-demangle --default-arch=i386 --obj=%p/Inputs/macho-universal 0x1f84 | Fil…
2 RUN: llvm-symbolizer --no-demangle --obj=%p/Inputs/macho-universal:i386 0x1f67 | FileCheck %s --che…
3 RUN: llvm-symbolizer --no-demangle --obj=%p/Inputs/macho-universal:x86_64 0x100000f05 | FileCheck %…

1234