lazpeng

clang.asm

Jul 21st, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "testes.cpp"
  2.     .text
  3.     .globl  main
  4.     .align  16, 0x90
  5.     .type   main,@function
  6. main:                                   # @main
  7.     .cfi_startproc
  8. # BB#0:
  9.     pushq   %rax
  10. .Ltmp1:
  11.     .cfi_def_cfa_offset 16
  12.     movl    $45, %edi
  13.     callq   _Z7do_testl
  14.     movl    $_ZSt4cout, %edi
  15.     movq    %rax, %rsi
  16.     callq   _ZNSo9_M_insertIlEERSoT_
  17.     movl    $.L.str, %esi
  18.     movl    $1, %edx
  19.     movq    %rax, %rdi
  20.     callq   _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
  21.     xorl    %eax, %eax
  22.     popq    %rdx
  23.     ret
  24. .Ltmp2:
  25.     .size   main, .Ltmp2-main
  26.     .cfi_endproc
  27.  
  28.     .section    .text._Z7do_testl,"axG",@progbits,_Z7do_testl,comdat
  29.     .weak   _Z7do_testl
  30.     .align  16, 0x90
  31.     .type   _Z7do_testl,@function
  32. _Z7do_testl:                            # @_Z7do_testl
  33.     .cfi_startproc
  34. # BB#0:
  35.     pushq   %r14
  36. .Ltmp6:
  37.     .cfi_def_cfa_offset 16
  38.     pushq   %rbx
  39. .Ltmp7:
  40.     .cfi_def_cfa_offset 24
  41.     pushq   %rax
  42. .Ltmp8:
  43.     .cfi_def_cfa_offset 32
  44. .Ltmp9:
  45.     .cfi_offset %rbx, -24
  46. .Ltmp10:
  47.     .cfi_offset %r14, -16
  48.     movq    %rdi, %rbx
  49.     cmpq    $2, %rbx
  50.     jge .LBB1_1
  51. # BB#2:
  52.     movq    %rbx, %rax
  53.     jmp .LBB1_3
  54. .LBB1_1:
  55.     leaq    -1(%rbx), %rdi
  56.     callq   _Z7do_testl
  57.     movq    %rax, %r14
  58.     addq    $-2, %rbx
  59.     movq    %rbx, %rdi
  60.     callq   _Z7do_testl
  61.     addq    %r14, %rax
  62. .LBB1_3:
  63.     addq    $8, %rsp
  64.     popq    %rbx
  65.     popq    %r14
  66.     ret
  67. .Ltmp11:
  68.     .size   _Z7do_testl, .Ltmp11-_Z7do_testl
  69.     .cfi_endproc
  70.  
  71.     .section    .text.startup,"ax",@progbits
  72.     .align  16, 0x90
  73.     .type   _GLOBAL__I_a,@function
  74. _GLOBAL__I_a:                           # @_GLOBAL__I_a
  75.     .cfi_startproc
  76. # BB#0:
  77.     pushq   %rax
  78. .Ltmp13:
  79.     .cfi_def_cfa_offset 16
  80.     movl    $_ZStL8__ioinit, %edi
  81.     callq   _ZNSt8ios_base4InitC1Ev
  82.     movl    $_ZNSt8ios_base4InitD1Ev, %edi
  83.     movl    $_ZStL8__ioinit, %esi
  84.     movl    $__dso_handle, %edx
  85.     popq    %rax
  86.     jmp __cxa_atexit            # TAILCALL
  87. .Ltmp14:
  88.     .size   _GLOBAL__I_a, .Ltmp14-_GLOBAL__I_a
  89.     .cfi_endproc
  90.  
  91.     .type   _ZStL8__ioinit,@object  # @_ZStL8__ioinit
  92.     .local  _ZStL8__ioinit
  93.     .comm   _ZStL8__ioinit,1,1
  94.     .type   .L.str,@object          # @.str
  95.     .section    .rodata.str1.1,"aMS",@progbits,1
  96. .L.str:
  97.     .asciz  "\n"
  98.     .size   .L.str, 2
  99.  
  100.     .section    .init_array,"aw",@init_array
  101.     .align  8
  102.     .quad   _GLOBAL__I_a
  103.  
  104.     .ident  "Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)"
  105.     .section    ".note.GNU-stack","",@progbits
Add Comment
Please, Sign In to add comment