From: Davide Italiano Date: Fri, 14 Aug 2015 15:16:37 +0000 (+0000) Subject: Convert tests under MC/ELF from macho-dump to llvm-readobj. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=729c24b2e9ed2bed70a89ba839e9be9da8f7510c;p=oota-llvm.git Convert tests under MC/ELF from macho-dump to llvm-readobj. Yet another step towards deprecating macho-dump. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245059 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/MC/ELF/sleb.s b/test/MC/ELF/sleb.s index 5cba5829a12..280b42d8cac 100644 --- a/test/MC/ELF/sleb.s +++ b/test/MC/ELF/sleb.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=ELF_32 %s // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=ELF_64 %s -// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | macho-dump --dump-section-data | FileCheck -check-prefix=MACHO_32 %s -// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | macho-dump --dump-section-data | FileCheck -check-prefix=MACHO_64 %s +// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=MACHO_32 %s +// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=MACHO_64 %s .text foo: @@ -27,7 +27,11 @@ foo: // ELF_64: SectionData ( // ELF_64: 0000: 00017F3F 40C000BF 7FFF3F80 4081C000 // ELF_64: ) -// MACHO_32: ('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') -// MACHO_32: ('_section_data', '00017f3f 40c000bf 7fff3f80 4081c000') -// MACHO_64: ('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') -// MACHO_64: ('_section_data', '00017f3f 40c000bf 7fff3f80 4081c000') +// MACHO_32: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00) +// MACHO_32: SectionData ( +// MACHO_32: 0000: 00017F3F 40C000BF 7FFF3F80 4081C000 |...?@.....?.@...| +// MACHO_32: ) +// MACHO_64: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00) +// MACHO_64: SectionData ( +// MACHO_64: 0000: 00017F3F 40C000BF 7FFF3F80 4081C000 |...?@.....?.@...| +// MACHO_64: ) diff --git a/test/MC/ELF/uleb.s b/test/MC/ELF/uleb.s index 5d203a93f02..ffa84e9021d 100644 --- a/test/MC/ELF/uleb.s +++ b/test/MC/ELF/uleb.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=ELF_32 %s // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=ELF_64 %s -// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | macho-dump --dump-section-data | FileCheck -check-prefix=MACHO_32 %s -// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | macho-dump --dump-section-data | FileCheck -check-prefix=MACHO_64 %s +// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=MACHO_32 %s +// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=MACHO_64 %s .text foo: @@ -21,7 +21,11 @@ foo: // ELF_64: SectionData ( // ELF_64: 0000: 00017F80 01FF7F80 8001172A // ELF_64: ) -// MACHO_32: ('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') -// MACHO_32: ('_section_data', '00017f80 01ff7f80 8001172a') -// MACHO_64: ('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') -// MACHO_64: ('_section_data', '00017f80 01ff7f80 8001172a') +// MACHO_32: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00) +// MACHO_32: SectionData ( +// MACHO_32: 0000: 00017F80 01FF7F80 8001172A |...........*| +// MACHO_32: ) +// MACHO_64: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00) +// MACHO_64: SectionData ( +// MACHO_64: 0000: 00017F80 01FF7F80 8001172A |...........*| +// MACHO_64: )