Home | History | Annotate | Download | only in X86
      1 // RUN: yaml2obj -o %t.out %p/Inputs/simple-executable-x86_64.yaml
      2 // RUN: llvm-objdump -d %t.out -df=main | FileCheck %s
      3 
      4 // CHECK:              Disassembly of section .anothertext:
      5 // CHECK-NEXT:         main:
      6 // CHECK-NEXT:         10:       55      pushq   %rbp
      7 // CHECK-NEXT:         11:       48 89 e5        movq    %rsp, %rbp
      8 // CHECK-NEXT:         14:       48 83 ec 20     subq    $32, %rsp
      9 // CHECK-NEXT:         18:       48 8d 04 25 a8 00 00 00         leaq    168, %rax
     10 // CHECK-NEXT:         20:       c7 45 fc 00 00 00 00    movl    $0, -4(%rbp)
     11 // CHECK-NEXT:         27:       48 89 45 f0     movq    %rax, -16(%rbp)
     12 // CHECK-NEXT:         2b:       48 8b 45 f0     movq    -16(%rbp), %rax
     13 // CHECK-NEXT:         2f:       8b 08   movl    (%rax), %ecx
     14 // CHECK-NEXT:         31:       89 4d ec        movl    %ecx, -20(%rbp)
     15 // CHECK-NEXT:         34:       e8 c7 ff ff ff  callq   -57
     16 // CHECK-NEXT:         39:       8b 4d ec        movl    -20(%rbp), %ecx
     17 // CHECK-NEXT:         3c:       01 c1   addl    %eax, %ecx
     18 // CHECK-NEXT:         3e:       89 c8   movl    %ecx, %eax
     19 // CHECK-NEXT:         40:       48 83 c4 20     addq    $32, %rsp
     20 // CHECK-NEXT:         44:       5d      popq    %rbp
     21