File: disasm-specific-funcs.test

package info (click to toggle)
llvm-toolchain-7 1%3A7.0.1-8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 733,456 kB
  • sloc: cpp: 3,776,651; ansic: 633,271; asm: 350,301; python: 142,716; objc: 107,612; sh: 22,626; lisp: 11,056; perl: 7,999; pascal: 6,742; ml: 5,537; awk: 3,536; makefile: 2,557; cs: 2,027; xml: 841; ruby: 156
file content (20 lines) | stat: -rw-r--r-- 1,218 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: yaml2obj -o %t.out %p/Inputs/simple-executable-x86_64.yaml
// RUN: llvm-objdump -d %t.out -df=main | FileCheck %s

// CHECK:              Disassembly of section .anothertext:
// CHECK-NEXT:         main:
// CHECK-NEXT:         10:       55      pushq   %rbp
// CHECK-NEXT:         11:       48 89 e5        movq    %rsp, %rbp
// CHECK-NEXT:         14:       48 83 ec 20     subq    $32, %rsp
// CHECK-NEXT:         18:       48 8d 04 25 a8 00 00 00         leaq    168, %rax
// CHECK-NEXT:         20:       c7 45 fc 00 00 00 00    movl    $0, -4(%rbp)
// CHECK-NEXT:         27:       48 89 45 f0     movq    %rax, -16(%rbp)
// CHECK-NEXT:         2b:       48 8b 45 f0     movq    -16(%rbp), %rax
// CHECK-NEXT:         2f:       8b 08   movl    (%rax), %ecx
// CHECK-NEXT:         31:       89 4d ec        movl    %ecx, -20(%rbp)
// CHECK-NEXT:         34:       e8 c7 ff ff ff  callq   -57
// CHECK-NEXT:         39:       8b 4d ec        movl    -20(%rbp), %ecx
// CHECK-NEXT:         3c:       01 c1   addl    %eax, %ecx
// CHECK-NEXT:         3e:       89 c8   movl    %ecx, %eax
// CHECK-NEXT:         40:       48 83 c4 20     addq    $32, %rsp
// CHECK-NEXT:         44:       5d      popq    %rbp