[lld] r244037 - Rename asm tests to .s. NFC.
Rafael Espindola
rafael.espindola at gmail.com
Wed Aug 5 05:14:51 PDT 2015
Author: rafael
Date: Wed Aug 5 07:14:51 2015
New Revision: 244037
URL: http://llvm.org/viewvc/llvm-project?rev=244037&view=rev
Log:
Rename asm tests to .s. NFC.
Added:
lld/trunk/test/elf2/basic.s
- copied, changed from r244035, lld/trunk/test/elf2/basic.test
lld/trunk/test/elf2/incompatible.s
- copied, changed from r244035, lld/trunk/test/elf2/incompatible.test
lld/trunk/test/elf2/lit.local.cfg
lld/trunk/test/elf2/undef.s
- copied, changed from r244035, lld/trunk/test/elf2/undef.test
Removed:
lld/trunk/test/elf2/basic.test
lld/trunk/test/elf2/incompatible.test
lld/trunk/test/elf2/undef.test
Copied: lld/trunk/test/elf2/basic.s (from r244035, lld/trunk/test/elf2/basic.test)
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/basic.s?p2=lld/trunk/test/elf2/basic.s&p1=lld/trunk/test/elf2/basic.test&r1=244035&r2=244037&rev=244037&view=diff
==============================================================================
(empty)
Removed: lld/trunk/test/elf2/basic.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/basic.test?rev=244036&view=auto
==============================================================================
--- lld/trunk/test/elf2/basic.test (original)
+++ lld/trunk/test/elf2/basic.test (removed)
@@ -1,137 +0,0 @@
-# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: lld -flavor gnu2 %t -o %t2
-# RUN: llvm-readobj -file-headers -sections -program-headers %t2 | FileCheck %s
-# REQUIRES: x86
-
-# exits with return code 42 on linux
-.globl _start;
-_start:
- mov $60, %rax
- mov $42, %rdi
- syscall
-
-# CHECK: ElfHeader {
-# CHECK-NEXT: Ident {
-# CHECK-NEXT: Magic: (7F 45 4C 46)
-# CHECK-NEXT: Class: 64-bit (0x2)
-# CHECK-NEXT: DataEncoding: LittleEndian (0x1)
-# CHECK-NEXT: FileVersion: 1
-# CHECK-NEXT: OS/ABI: SystemV (0x0)
-# CHECK-NEXT: ABIVersion: 0
-# CHECK-NEXT: Unused: (00 00 00 00 00 00 00)
-# CHECK-NEXT: }
-# CHECK-NEXT: Type: Executable (0x2)
-# CHECK-NEXT: Machine: EM_X86_64 (0x3E)
-# CHECK-NEXT: Version: 1
-# CHECK-NEXT: Entry: 0x401000
-# CHECK-NEXT: ProgramHeaderOffset: 0x40
-# CHECK-NEXT: SectionHeaderOffset: 0x1010
-# CHECK-NEXT: Flags [ (0x0)
-# CHECK-NEXT: ]
-# CHECK-NEXT: HeaderSize: 64
-# CHECK-NEXT: ProgramHeaderEntrySize: 56
-# CHECK-NEXT: ProgramHeaderCount: 1
-# CHECK-NEXT: SectionHeaderEntrySize: 64
-# CHECK-NEXT: SectionHeaderCount: 4
-# CHECK-NEXT: StringTableSectionIndex: 0
-# CHECK-NEXT: }
-# CHECK-NEXT: Sections [
-# CHECK-NEXT: Section {
-# CHECK-NEXT: Index: 0
-# CHECK-NEXT: Name: (0)
-# CHECK-NEXT: Type: SHT_NULL (0x0)
-# CHECK-NEXT: Flags [ (0x0)
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address: 0x0
-# CHECK-NEXT: Offset: 0x0
-# CHECK-NEXT: Size: 0
-# CHECK-NEXT: Link: 0
-# CHECK-NEXT: Info: 0
-# CHECK-NEXT: AddressAlignment: 0
-# CHECK-NEXT: EntrySize: 0
-# CHECK-NEXT: }
-# CHECK-NEXT: Section {
-# CHECK-NEXT: Index: 1
-# CHECK-NEXT: Name: (0)
-# CHECK-NEXT: Type: SHT_PROGBITS (0x1)
-# CHECK-NEXT: Flags [ (0x6)
-# CHECK-NEXT: SHF_ALLOC (0x2)
-# CHECK-NEXT: SHF_EXECINSTR (0x4)
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address: 0x1000
-# CHECK-NEXT: Offset: 0x1000
-# CHECK-NEXT: Size: 16
-# CHECK-NEXT: Link: 0
-# CHECK-NEXT: Info: 0
-# CHECK-NEXT: AddressAlignment: 0
-# CHECK-NEXT: EntrySize: 0
-# CHECK-NEXT: }
-# CHECK-NEXT: Section {
-# CHECK-NEXT: Index: 2
-# CHECK-NEXT: Name: (0)
-# CHECK-NEXT: Type: SHT_PROGBITS (0x1)
-# CHECK-NEXT: Flags [ (0x3)
-# CHECK-NEXT: SHF_ALLOC (0x2)
-# CHECK-NEXT: SHF_WRITE (0x1)
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address: 0x2000
-# CHECK-NEXT: Offset: 0x0
-# CHECK-NEXT: Size: 0
-# CHECK-NEXT: Link: 0
-# CHECK-NEXT: Info: 0
-# CHECK-NEXT: AddressAlignment: 0
-# CHECK-NEXT: EntrySize: 0
-# CHECK-NEXT: }
-# CHECK-NEXT: Section {
-# CHECK-NEXT: Index: 3
-# CHECK-NEXT: Name: (0)
-# CHECK-NEXT: Type: SHT_NOBITS (0x8)
-# CHECK-NEXT: Flags [ (0x3)
-# CHECK-NEXT: SHF_ALLOC (0x2)
-# CHECK-NEXT: SHF_WRITE (0x1)
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address: 0x2000
-# CHECK-NEXT: Offset: 0x0
-# CHECK-NEXT: Size: 0
-# CHECK-NEXT: Link: 0
-# CHECK-NEXT: Info: 0
-# CHECK-NEXT: AddressAlignment: 0
-# CHECK-NEXT: EntrySize: 0
-# CHECK-NEXT: }
-# CHECK-NEXT: ]
-# CHECK-NEXT: ProgramHeaders [
-# CHECK-NEXT: ProgramHeader {
-# CHECK-NEXT: Type: PT_LOAD (0x1)
-# CHECK-NEXT: Offset: 0x0
-# CHECK-NEXT: VirtualAddress: 0x400000
-# CHECK-NEXT: PhysicalAddress: 0x400000
-# CHECK-NEXT: FileSize: 4368
-# CHECK-NEXT: MemSize: 4368
-# CHECK-NEXT: Flags [ (0x5)
-# CHECK-NEXT: PF_R (0x4)
-# CHECK-NEXT: PF_X (0x1)
-# CHECK-NEXT: ]
-# CHECK-NEXT: Alignment: 16384
-# CHECK-NEXT: }
-# CHECK-NEXT: ]
-
-# RUN: not lld -flavor gnu2 %t 2>&1 | FileCheck --check-prefix=NO_O %s
-# NO_O: -o must be specified.
-
-# RUN: not lld -flavor gnu2 %t.foo -o %t2 2>&1 | \
-# RUN: FileCheck --check-prefix=MISSING %s
-# MISSING: cannot open {{.*}}.foo: {{[Nn]}}o such file or directory
-
-# RUN: not lld -flavor gnu2 -o %t2 2>&1 | \
-# RUN: FileCheck --check-prefix=NO_INPUT %s
-# NO_INPUT: no input files.
-
-# RUN: not lld -flavor gnu2 %t -o 2>&1 | FileCheck --check-prefix=NO_O_VAL %s
-# NO_O_VAL: missing arg value for "-o", expected 1 argument.
-
-# RUN: not lld -flavor gnu2 --foo 2>&1 | FileCheck --check-prefix=UNKNOWN %s
-# UNKNOWN: unknown argument: --foo
-
-# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: not lld -flavor gnu2 %t %t -o %t2 2>&1 | FileCheck --check-prefix=DUP %s
-# DUP: duplicate symbol: _start
Copied: lld/trunk/test/elf2/incompatible.s (from r244035, lld/trunk/test/elf2/incompatible.test)
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/incompatible.s?p2=lld/trunk/test/elf2/incompatible.s&p1=lld/trunk/test/elf2/incompatible.test&r1=244035&r2=244037&rev=244037&view=diff
==============================================================================
(empty)
Removed: lld/trunk/test/elf2/incompatible.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/incompatible.test?rev=244036&view=auto
==============================================================================
--- lld/trunk/test/elf2/incompatible.test (original)
+++ lld/trunk/test/elf2/incompatible.test (removed)
@@ -1,13 +0,0 @@
-// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %ta.o
-// RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %tb.o
-// RUN: llvm-mc -filetype=obj -triple=arm-unknown-linux %s -o %tc.o
-
-// RUN: not lld -flavor gnu2 %ta.o %tb.o -o %t 2>&1 | \
-// RUN: FileCheck --check-prefix=A-AND-B %s
-// A-AND-B: a.o is incompatible with {{.*}}b.o
-
-// RUN: not lld -flavor gnu2 %tb.o %tc.o -o %t 2>&1 | \
-// RUN: FileCheck --check-prefix=B-AND-C %s
-// B-AND-C: b.o is incompatible with {{.*}}c.o
-
-// REQUIRES: x86,arm
Added: lld/trunk/test/elf2/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/lit.local.cfg?rev=244037&view=auto
==============================================================================
--- lld/trunk/test/elf2/lit.local.cfg (added)
+++ lld/trunk/test/elf2/lit.local.cfg Wed Aug 5 07:14:51 2015
@@ -0,0 +1,2 @@
+config.suffixes = ['.test', '.s']
+
Copied: lld/trunk/test/elf2/undef.s (from r244035, lld/trunk/test/elf2/undef.test)
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/undef.s?p2=lld/trunk/test/elf2/undef.s&p1=lld/trunk/test/elf2/undef.test&r1=244035&r2=244037&rev=244037&view=diff
==============================================================================
(empty)
Removed: lld/trunk/test/elf2/undef.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/undef.test?rev=244036&view=auto
==============================================================================
--- lld/trunk/test/elf2/undef.test (original)
+++ lld/trunk/test/elf2/undef.test (removed)
@@ -1,8 +0,0 @@
-# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: not lld -flavor gnu2 %t -o %t2 2>&1 | FileCheck %s
-# CHECK: undefined symbol: foo
-# REQUIRES: x86
-
- .globl _start;
-_start:
- call foo
More information about the llvm-commits
mailing list