xref: /llvm-project/llvm/test/tools/llvm-lib/infer-machine.test (revision c983ae8f26334279cfe7846bdc9b395abe415e65)
1REQUIRES: mips-registered-target
2
3RUN: rm -rf %t && mkdir -p %t
4
5RUN: llc -mtriple=i386-windows-coff -filetype=obj -o %t/i386.obj %S/Inputs/i386.ll
6RUN: llvm-as %S/Inputs/i386.ll -o %t/i386.bc
7RUN: llvm-lib %t/i386.obj %t/i386.bc /out:%t/i386.lib
8RUN: llvm-objdump -h %t/i386.lib | FileCheck %s --check-prefix=I386
9I386: file format coff-i386
10
11RUN: llc -mtriple=x86_64-windows-coff -filetype=obj -o %t/x86_64.obj %S/Inputs/x86_64.ll
12RUN: llvm-as %S/Inputs/x86_64.ll -o %t/x86_64.bc
13RUN: llvm-lib %t/x86_64.obj %t/x86_64.bc /out:%t/x86_64.lib
14RUN: llvm-objdump -h %t/x86_64.lib | FileCheck %s --check-prefix=X86_64
15X86_64: file format coff-x86-64
16
17RUN: llc -mtriple=mipsel-windows-coff -filetype=obj -o %t/mips.obj %S/Inputs/mips.ll
18RUN: llvm-as %S/Inputs/mips.ll -o %t/mips.bc
19RUN: llvm-lib %t/mips.obj %t/mips.bc /out:%t/mips.lib
20RUN: llvm-objdump -h %t/mips.lib | FileCheck %s --check-prefix=MIPS
21MIPS: file format coff-mips
22