[Mips] Replace assembler code by YAML to make the 'entry-name.test' test target

independent.

llvm-svn: 213690
This commit is contained in:
Simon Atanasyan 2014-07-22 21:47:34 +00:00
parent f560928889
commit bcb865a8ce
1 changed files with 23 additions and 13 deletions

View File

@ -1,16 +1,26 @@
# REQUIRES: mips
# Check name of executable entry symbol. # Check name of executable entry symbol.
# RUN: llvm-mc -triple=mipsel -filetype=obj -o=%t1 %s # RUN: yaml2obj -format=elf %s > %t.o
# RUN: lld -flavor gnu -target mipsel --noinhibit-exec -o %t2 %t1 # RUN: lld -flavor gnu -target mipsel --noinhibit-exec -o %t.exe %t.o
# RUN: llvm-objdump -t %t2 | FileCheck %s # RUN: llvm-nm %t.exe | FileCheck %s
# CHECK: SYMBOL TABLE: # CHECK: U __start
# CHECK: {{[0-9a-f]+}} g F .text 00000004 main # CHECK: 00400108 T main
# CHECK: 00000000 *UND* 00000000 __start
.global main FileHeader:
.ent main Class: ELFCLASS32
main: Data: ELFDATA2LSB
nop Type: ET_REL
.end main Machine: EM_MIPS
Flags: [ EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x04
Size: 0x04
Symbols:
Global:
- Name: main
Section: .text