[llvm] r352142 - simplify COFF module assembly test and move it to Object

Bob Haarman via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 24 16:33:05 PST 2019


Author: inglorion
Date: Thu Jan 24 16:33:05 2019
New Revision: 352142

URL: http://llvm.org/viewvc/llvm-project?rev=352142&view=rev
Log:
simplify COFF module assembly test and move it to Object

Reviewers: pcc, rnk

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D57192

Added:
    llvm/trunk/test/Object/X86/coff-asm.ll
Removed:
    llvm/trunk/test/MC/COFF/module-asm-coff.ll

Removed: llvm/trunk/test/MC/COFF/module-asm-coff.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/COFF/module-asm-coff.ll?rev=352141&view=auto
==============================================================================
--- llvm/trunk/test/MC/COFF/module-asm-coff.ll (original)
+++ llvm/trunk/test/MC/COFF/module-asm-coff.ll (removed)
@@ -1,21 +0,0 @@
-; 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: 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
-
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-pc-windows-msvc19.0.24210"
-
-module asm ".text"
-module asm ".def foo; .scl 3; .type 32; .endef"
-module asm ".global foo"
-module asm "foo:"
-module asm "  ret"
-
-; CHECK: Symbol {
-; CHECK:   Name: foo
-; CHECK:   StorageClass:
-; CHECK-SAME: Static (0x3)

Added: llvm/trunk/test/Object/X86/coff-asm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/X86/coff-asm.ll?rev=352142&view=auto
==============================================================================
--- llvm/trunk/test/Object/X86/coff-asm.ll (added)
+++ llvm/trunk/test/Object/X86/coff-asm.ll Thu Jan 24 16:33:05 2019
@@ -0,0 +1,13 @@
+; Check that llvm-nm doesn't crash on COFF-specific assembly directives
+; (PR36789).
+
+; RUN: llvm-as %s -o %t.bc
+; RUN: llvm-nm %t.bc
+
+target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-pc-windows-msvc19.0.24210"
+
+module asm ".text"
+module asm ".def foo; .scl 2; .type 32; .endef"
+module asm "foo:"
+module asm "  ret"




More information about the llvm-commits mailing list