File: macho-symbolized-disassembly.test

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (22 lines) | stat: -rw-r--r-- 1,534 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: llvm-objdump -d -m --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.obj.macho-aarch64 | FileCheck %s --check-prefix=OBJ
// RUN: llvm-objdump -d -m --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/hello.exe.macho-aarch64 | FileCheck %s --check-prefix=EXE
// RUN: llvm-objdump -d -m --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/ObjC.obj.macho-aarch64 | FileCheck %s --check-prefix=ObjC-OBJ
// RUN: llvm-objdump -d -m --no-show-raw-insn --full-leading-addr --print-imm-hex %p/Inputs/ObjC.exe.macho-aarch64 | FileCheck %s --check-prefix=ObjC-EXE

OBJ: 000000000000001c	adrp	x0, L_.str@PAGE
OBJ: 0000000000000020	add	x0, x0, L_.str@PAGEOFF
OBJ: 0000000000000024	bl	_printf

EXE: 0000000100007f58	add	x0, x0, #0xfa8 ; literal pool for: "Hello world\n"
EXE: 0000000100007f5c	bl	0x100007f78 ; symbol stub for: _printf

ObjC-OBJ: 000000000000000c	adrp	x8, L_OBJC_SELECTOR_REFERENCES_3@PAGE
ObjC-OBJ: 0000000000000010	add	x8, x8, L_OBJC_SELECTOR_REFERENCES_3@PAGEOFF
ObjC-OBJ:0000000000000044	bl	_objc_msgSend

ObjC-EXE: 0000000100007ed0	add	x8, x8, #0x50 ; Objc selector ref: date
ObjC-EXE: 0000000100007ed8	add	x9, x9, #0x60 ; Objc class ref: _OBJC_CLASS_$_NSDate
ObjC-EXE: 0000000100007f04	bl	0x100007f50 ; Objc message: +[NSObject new]
ObjC-EXE: 0000000100007f1c	bl	0x100007f50 ; Objc message: -[x0 new]
ObjC-EXE: 0000000100007f2c	add	x0, x0, #0x20 ; Objc cfstring ref: @"The current date and time is: %@"
ObjC-EXE: 0000000100007f30	bl	0x100007f44 ; symbol stub for: _NSLog