1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/tools/llvm-dlltool/machine-opt.def
Martin Storsjö a93c99de02 [llvm-dlltool] [test] Add a testcase for all machine option types. NFC.
The existing tests only test that some options (but not e.g. arm)
are accepted, but it doesn't test their functional effect of
affecting the generated object files.

Differential Revision: https://reviews.llvm.org/D104215
2021-06-17 13:02:35 +03:00

18 lines
570 B
Modula-2

; RUN: llvm-dlltool -m i386 -d %s -l %t.a
; RUN: llvm-readobj %t.a | FileCheck --check-prefix=I386 %s
; RUN: llvm-dlltool -m i386:x86-64 -d %s -l %t.a
; RUN: llvm-readobj %t.a | FileCheck --check-prefix=X86_64 %s
; RUN: llvm-dlltool -m arm -d %s -l %t.a
; RUN: llvm-readobj %t.a | FileCheck --check-prefix=ARM %s
; RUN: llvm-dlltool -m arm64 -d %s -l %t.a
; RUN: llvm-readobj %t.a | FileCheck --check-prefix=ARM64 %s
LIBRARY test.dll
EXPORTS
TestFunction
; I386: Format: COFF-i386
; X86_64: Format: COFF-x86-64
; ARM: Format: COFF-ARM{{$}}
; ARM64: Format: COFF-ARM64