diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2014-08-01 09:47:21 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2014-08-01 09:47:21 +0000 |
| commit | 91af42fb7bef3f02e222b2f085c60d59b2a5eae2 (patch) | |
| tree | a81ab248a740245555ed9743c4b8a3d7af6eab99 | |
| parent | c80e1dc081fdb45a6be0ea5fb0b7be012d82865f (diff) | |
| download | bcm5719-llvm-91af42fb7bef3f02e222b2f085c60d59b2a5eae2.tar.gz bcm5719-llvm-91af42fb7bef3f02e222b2f085c60d59b2a5eae2.zip | |
[Mips] Replace assembler code by YAML to make the 'interpreter.test' test
target independent.
llvm-svn: 214495
| -rw-r--r-- | lld/test/elf/Mips/interpreter.test | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/lld/test/elf/Mips/interpreter.test b/lld/test/elf/Mips/interpreter.test index 470bb20fe31..5355f7709fb 100644 --- a/lld/test/elf/Mips/interpreter.test +++ b/lld/test/elf/Mips/interpreter.test @@ -1,15 +1,26 @@ -# REQUIRES: mips - # Check program interpreter setup. -# RUN: llvm-mc -triple=mipsel -filetype=obj -o=%t1 %s -# RUN: lld -flavor gnu -target mipsel -e main -o %t2 %t1 -# RUN: llvm-objdump -s %t2 | FileCheck %s +# RUN: yaml2obj -format=elf %s > %t.o +# RUN: lld -flavor gnu -target mipsel -e main -o %t.exe %t.o +# RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .interp: # CHECK-NEXT: {{[0-9a-f]+}} 2f6c6962 2f6c642e 736f2e31 00 /lib/ld.so.1. - .global main - .ent main -main: - nop - .end main +FileHeader: + Class: ELFCLASS32 + Data: ELFDATA2LSB + Type: ET_REL + Machine: EM_MIPS + Flags: [ EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ] + +Sections: + - Name: .text + Type: SHT_PROGBITS + Flags: [ SHF_ALLOC, SHF_EXECINSTR ] + AddressAlign: 0x10 + Size: 0x04 + +Symbols: + Global: + - Name: main + Section: .text |

