Advertisement
Guest User

Strange bug in optimizator

a guest
Aug 30th, 2013
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 2.59 KB | None | 0 0
  1.     .file   "kirienko.cpp"
  2.     .text
  3.     .def    ___tcf_0;   .scl    3;  .type   32; .endef
  4. ___tcf_0:
  5. LFB990:
  6.     .cfi_startproc
  7.     subl    $28, %esp
  8.     .cfi_def_cfa_offset 32
  9.     movl    $__ZStL8__ioinit, (%esp)
  10.     call    __ZNSt8ios_base4InitD1Ev
  11.     addl    $28, %esp
  12.     .cfi_def_cfa_offset 4
  13.     ret
  14.     .cfi_endproc
  15. LFE990:
  16.     .def    ___main;    .scl    2;  .type   32; .endef
  17.     .section .rdata,"dr"
  18. LC0:
  19.     .ascii " \0"
  20.     .text
  21.     .globl  _main
  22.     .def    _main;  .scl    2;  .type   32; .endef
  23. _main:
  24. LFB983:
  25.     .cfi_startproc
  26.     pushl   %ebp
  27.     .cfi_def_cfa_offset 8
  28.     .cfi_offset 5, -8
  29.     movl    %esp, %ebp
  30.     .cfi_def_cfa_register 5
  31.     pushl   %esi
  32.     pushl   %ebx
  33.     andl    $-16, %esp
  34.     subl    $32, %esp
  35.     .cfi_offset 3, -16
  36.     .cfi_offset 6, -12
  37.     call    ___main
  38.     leal    28(%esp), %eax
  39.     movl    %eax, 4(%esp)
  40.     movl    $__ZSt3cin, (%esp)
  41.     call    __ZNSirsERi
  42.     movl    28(%esp), %esi
  43.     testl   %esi, %esi
  44.     jle L6
  45.     movl    $0, %ebx
  46. L4:
  47.     leal    _A(,%ebx,8), %eax
  48.     movl    %eax, 4(%esp)
  49.     movl    $__ZSt3cin, (%esp)
  50.     call    __ZNSi10_M_extractIxEERSiRT_
  51.     incl    %ebx
  52.     movl    28(%esp), %esi
  53.     cmpl    %ebx, %esi
  54.     jg  L4
  55.     movl    %esi, %edx
  56.     testl   %esi, %esi
  57.     jle L7
  58.     movl    $0, %eax
  59.     movl    $0, %ecx
  60.     movl    $0, %ebx
  61. L5:
  62.     addl    _A(,%eax,8), %ecx
  63.     adcl    _A+4(,%eax,8), %ebx
  64.     incl    %eax
  65.     cmpl    %edx, %eax
  66.     jne L5
  67.     jmp L3
  68. L6:
  69.     movl    $0, %ecx
  70.     movl    $0, %ebx
  71.     jmp L3
  72. L7:
  73.     movl    $0, %ecx
  74.     movl    $0, %ebx
  75. L3:
  76.     movl    %ecx, 4(%esp)
  77.     movl    %ebx, 8(%esp)
  78.     movl    $__ZSt4cout, (%esp)
  79.     call    __ZNSo9_M_insertIxEERSoT_
  80.     movl    $LC0, 4(%esp)
  81.     movl    %eax, (%esp)
  82.     call    __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
  83.     movl    %esi, 4(%esp)
  84.     movl    %eax, (%esp)
  85.     call    __ZNSolsEi
  86.     movl    $0, %eax
  87.     leal    -8(%ebp), %esp
  88.     popl    %ebx
  89.     .cfi_restore 3
  90.     popl    %esi
  91.     .cfi_restore 6
  92.     popl    %ebp
  93.     .cfi_def_cfa 4, 4
  94.     .cfi_restore 5
  95.     ret
  96.     .cfi_endproc
  97. LFE983:
  98.     .def    __GLOBAL__sub_I_A;  .scl    3;  .type   32; .endef
  99. __GLOBAL__sub_I_A:
  100. LFB991:
  101.     .cfi_startproc
  102.     subl    $28, %esp
  103.     .cfi_def_cfa_offset 32
  104.     movl    $__ZStL8__ioinit, (%esp)
  105.     call    __ZNSt8ios_base4InitC1Ev
  106.     movl    $___tcf_0, (%esp)
  107.     call    _atexit
  108.     addl    $28, %esp
  109.     .cfi_def_cfa_offset 4
  110.     ret
  111.     .cfi_endproc
  112. LFE991:
  113.     .section    .ctors,"w"
  114.     .align 4
  115.     .long   __GLOBAL__sub_I_A
  116.     .globl  _A
  117.     .bss
  118.     .align 32
  119. _A:
  120.     .space 80
  121. .lcomm __ZStL8__ioinit,1,1
  122.     .def    __ZNSt8ios_base4InitD1Ev;   .scl    2;  .type   32; .endef
  123.     .def    __ZNSirsERi;    .scl    2;  .type   32; .endef
  124.     .def    __ZNSi10_M_extractIxEERSiRT_;   .scl    2;  .type   32; .endef
  125.     .def    __ZNSo9_M_insertIxEERSoT_;  .scl    2;  .type   32; .endef
  126.     .def    __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc;   .scl    2;  .type   32; .endef
  127.     .def    __ZNSolsEi; .scl    2;  .type   32; .endef
  128.     .def    __ZNSt8ios_base4InitC1Ev;   .scl    2;  .type   32; .endef
  129.     .def    _atexit;    .scl    2;  .type   32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement