• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.coff-i386 \
2RUN:              | FileCheck %s -check-prefix COFF-i386
3RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.coff-x86-64 \
4RUN:              | FileCheck %s -check-prefix COFF-x86-64
5RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.elf-i386 \
6RUN:              | FileCheck %s -check-prefix ELF-i386
7RUN: llvm-objdump -d %p/../Inputs/trivial-object-test.elf-x86-64 \
8RUN:              | FileCheck %s -check-prefix ELF-x86-64
9
10COFF-i386: file format COFF-i386
11COFF-i386: Disassembly of section .text:
12COFF-i386:        0:       83 ec 0c                                        subl    $12, %esp
13COFF-i386:        3:       c7 44 24 08 00 00 00 00                         movl    $0, 8(%esp)
14COFF-i386:        b:       c7 04 24 00 00 00 00                            movl    $0, (%esp)
15COFF-i386:       12:       e8 00 00 00 00                                  calll   0
16COFF-i386:       17:       e8 00 00 00 00                                  calll   0
17COFF-i386:       1c:       8b 44 24 08                                     movl    8(%esp), %eax
18COFF-i386:       20:       83 c4 0c                                        addl    $12, %esp
19COFF-i386:       23:       c3                                              ret
20
21COFF-x86-64: file format COFF-x86-64
22COFF-x86-64: Disassembly of section .text:
23COFF-x86-64:        0:       48 83 ec 28                                     subq    $40, %rsp
24COFF-x86-64:        4:       c7 44 24 24 00 00 00 00                         movl    $0, 36(%rsp)
25COFF-x86-64:        c:       48 8d 0d 00 00 00 00                            leaq    (%rip), %rcx
26COFF-x86-64:       13:       e8 00 00 00 00                                  callq   0
27COFF-x86-64:       18:       e8 00 00 00 00                                  callq   0
28COFF-x86-64:       1d:       8b 44 24 24                                     movl    36(%rsp), %eax
29COFF-x86-64:       21:       48 83 c4 28                                     addq    $40, %rsp
30COFF-x86-64:       25:       c3                                              ret
31
32
33ELF-i386: file format ELF32-i386
34ELF-i386: Disassembly of section .text:
35ELF-i386:        0:       83 ec 0c                                        subl    $12, %esp
36ELF-i386:        3:       c7 44 24 08 00 00 00 00                         movl    $0, 8(%esp)
37ELF-i386:        b:       c7 04 24 00 00 00 00                            movl    $0, (%esp)
38ELF-i386:       12:       e8 fc ff ff ff                                  calll   -4
39ELF-i386:       17:       e8 fc ff ff ff                                  calll   -4
40ELF-i386:       1c:       8b 44 24 08                                     movl    8(%esp), %eax
41ELF-i386:       20:       83 c4 0c                                        addl    $12, %esp
42ELF-i386:       23:       c3                                              ret
43
44ELF-x86-64: file format ELF64-x86-64
45ELF-x86-64: Disassembly of section .text:
46ELF-x86-64:        0:       48 83 ec 08                                     subq    $8, %rsp
47ELF-x86-64:        4:       c7 44 24 04 00 00 00 00                         movl    $0, 4(%rsp)
48ELF-x86-64:        c:       bf 00 00 00 00                                  movl    $0, %edi
49ELF-x86-64:       11:       e8 00 00 00 00                                  callq   0
50ELF-x86-64:       16:       30 c0                                           xorb    %al, %al
51ELF-x86-64:       18:       e8 00 00 00 00                                  callq   0
52ELF-x86-64:       1d:       8b 44 24 04                                     movl    4(%rsp), %eax
53ELF-x86-64:       21:       48 83 c4 08                                     addq    $8, %rsp
54ELF-x86-64:       25:       c3                                              ret
55