[PATCH] D104215: [llvm-dlltool] [test] Add a testcase for all machine option types. NFC.

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 17 03:03:05 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG675d52bc46ff: [llvm-dlltool] [test] Add a testcase for all machine option types. NFC. (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104215/new/

https://reviews.llvm.org/D104215

Files:
  llvm/test/tools/llvm-dlltool/machine-opt.def


Index: llvm/test/tools/llvm-dlltool/machine-opt.def
===================================================================
--- /dev/null
+++ llvm/test/tools/llvm-dlltool/machine-opt.def
@@ -0,0 +1,17 @@
+; 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104215.352662.patch
Type: text/x-patch
Size: 787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210617/40a76a01/attachment.bin>


More information about the llvm-commits mailing list