[PATCH] D57192: simplify COFF module assembly test and move it to Object

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 24 14:08:43 PST 2019


inglorion created this revision.
inglorion added reviewers: pcc, rnk.

https://reviews.llvm.org/D57192

Files:
  llvm/test/MC/COFF/module-asm-coff.ll
  llvm/test/Object/X86/coff-asm.ll


Index: llvm/test/Object/X86/coff-asm.ll
===================================================================
--- llvm/test/Object/X86/coff-asm.ll
+++ llvm/test/Object/X86/coff-asm.ll
@@ -1,10 +1,12 @@
 ; Tests COFF-specific directives in module level assembly.
 
 ; RUN: llc -filetype=obj %s -o %t.obj
-; RUN: llvm-readobj -t %t.obj | FileCheck %s
+; RUN: llvm-nm %t.obj | FileCheck %s
 ; RUN: opt -thinlto-bc %s -o %t.thinlto.bc
 ; RUN: llvm-lto2 run %t.thinlto.bc -o %t.thinlto.obj -r=%t.thinlto.bc,foo,plx
-; RUN: llvm-readobj -t %t.thinlto.obj.1 | FileCheck %s
+; RUN: llvm-nm %t.thinlto.obj.1 | FileCheck %s
+
+; CHECK: 00000000 t foo
 
 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-pc-windows-msvc19.0.24210"
@@ -15,7 +17,3 @@
 module asm "foo:"
 module asm "  ret"
 
-; CHECK: Symbol {
-; CHECK:   Name: foo
-; CHECK:   StorageClass:
-; CHECK-SAME: Static (0x3)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57192.183395.patch
Type: text/x-patch
Size: 908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190124/7d62cdd5/attachment.bin>


More information about the llvm-commits mailing list