• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: llvm-objdump -d -r %p/TestObjectFiles/trivial-object-test.coff-i386 \
2RUN:              | FileCheck %s -check-prefix COFF-i386
3RUN: llvm-objdump -d -r %p/TestObjectFiles/trivial-object-test.coff-x86-64 \
4RUN:              | FileCheck %s -check-prefix COFF-x86-64
5
6COFF-i386: file format COFF-i386
7COFF-i386: Disassembly of section .text:
8COFF-i386:        0:       83 ec 0c                                        subl    $12, %esp
9COFF-i386:        3:       c7 44 24 08 00 00 00 00                         movl    $0, 8(%esp)
10COFF-i386:        b:       c7 04 24 00 00 00 00                            movl    $0, (%esp)
11COFF-i386:                              e: IMAGE_REL_I386_DIR32  L_.str
12COFF-i386:       12:       e8 00 00 00 00                                  calll   0
13COFF-i386:                             13: IMAGE_REL_I386_REL32  _puts
14COFF-i386:       17:       e8 00 00 00 00                                  calll   0
15COFF-i386:                             18: IMAGE_REL_I386_REL32  _SomeOtherFunction
16COFF-i386:       1c:       8b 44 24 08                                     movl    8(%esp), %eax
17COFF-i386:       20:       83 c4 0c                                        addl    $12, %esp
18COFF-i386:       23:       c3                                              ret
19
20COFF-x86-64: file format COFF-x86-64
21COFF-x86-64: Disassembly of section .text:
22COFF-x86-64:        0:       48 83 ec 28                                     subq    $40, %rsp
23COFF-x86-64:        4:       c7 44 24 24 00 00 00 00                         movl    $0, 36(%rsp)
24COFF-x86-64:        c:       48 8d 0d 00 00 00 00                            leaq    (%rip), %rcx
25COFF-x86-64:                               f: IMAGE_REL_AMD64_REL32 L.str
26COFF-x86-64:       13:       e8 00 00 00 00                                  callq   0
27COFF-x86-64:                              14: IMAGE_REL_AMD64_REL32 puts
28COFF-x86-64:       18:       e8 00 00 00 00                                  callq   0
29COFF-x86-64:                              19: IMAGE_REL_AMD64_REL32 SomeOtherFunction
30COFF-x86-64:       1d:       8b 44 24 24                                     movl    36(%rsp), %eax
31COFF-x86-64:       21:       48 83 c4 28                                     addq    $40, %rsp
32COFF-x86-64:       25:       c3                                              ret
33