File: disassemble-all.test

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (39 lines) | stat: -rw-r--r-- 1,707 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// RUN: llvm-objdump --macho -d --full-leading-addr --print-imm-hex --no-show-raw-insn %p/Inputs/macho-multiple-text | FileCheck %s --check-prefix=TEXT

TEXT:      (__TEXT,__text) section
TEXT-NEXT: _main:
TEXT-NEXT: 0000000100000f60	pushq	%rbp
TEXT-NEXT: 0000000100000f61	movq	%rsp, %rbp
TEXT-NEXT: 0000000100000f64	subq	$0x10, %rsp
TEXT-NEXT: 0000000100000f68	movl	$0x0, -0x4(%rbp)
TEXT-NEXT: 0000000100000f6f	callq	_hello
TEXT-NEXT: 0000000100000f74	xorl	%eax, %eax
TEXT-NEXT: 0000000100000f76	addq	$0x10, %rsp
TEXT-NEXT: 0000000100000f7a	popq	%rbp
TEXT-NEXT: 0000000100000f7b	retq

// RUN: llvm-objdump --macho -D --full-leading-addr --print-imm-hex --no-show-raw-insn %p/Inputs/macho-multiple-text | FileCheck %s --check-prefix=ALL

ALL:      (__TEXT,__text) section
ALL-NEXT: _main:
ALL-NEXT: 0000000100000f60	pushq	%rbp
ALL-NEXT: 0000000100000f61	movq	%rsp, %rbp
ALL-NEXT: 0000000100000f64	subq	$0x10, %rsp
ALL-NEXT: 0000000100000f68	movl	$0x0, -0x4(%rbp)
ALL-NEXT: 0000000100000f6f	callq	_hello
ALL-NEXT: 0000000100000f74	xorl	%eax, %eax
ALL-NEXT: 0000000100000f76	addq	$0x10, %rsp
ALL-NEXT: 0000000100000f7a	popq	%rbp
ALL-NEXT: 0000000100000f7b	retq
ALL:      (__TEXT_EXEC,__text) section
ALL-NEXT: _hello:
ALL-NEXT: 0000000100001000	pushq	%rbp
ALL-NEXT: 0000000100001001	movq	%rsp, %rbp
ALL-NEXT: 0000000100001004	subq	$0x10, %rsp
ALL-NEXT: 0000000100001008	leaq	-0x71(%rip), %rdi ## literal pool for: "hello, world!\n"
ALL-NEXT: 000000010000100f	movb	$0x0, %al
ALL-NEXT: 0000000100001011	callq	0x100000f7c ## symbol stub for: _printf
ALL-NEXT: 0000000100001016	movl	%eax, -0x4(%rbp)
ALL-NEXT: 0000000100001019	addq	$0x10, %rsp
ALL-NEXT: 000000010000101d	popq	%rbp
ALL-NEXT: 000000010000101e	retq