Advertisement
Guest User

Strange bug in optimizator

a guest
Aug 30th, 2013
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 3.47 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   %edi
  32.     pushl   %esi
  33.     pushl   %ebx
  34.     andl    $-16, %esp
  35.     subl    $64, %esp
  36.     .cfi_offset 3, -20
  37.     .cfi_offset 6, -16
  38.     .cfi_offset 7, -12
  39.     call    ___main
  40.     leal    60(%esp), %eax
  41.     movl    %eax, 4(%esp)
  42.     movl    $__ZSt3cin, (%esp)
  43.     call    __ZNSirsERi
  44.     movl    60(%esp), %eax
  45.     movl    %eax, 24(%esp)
  46.     testl   %eax, %eax
  47.     jle L6
  48.     movl    $0, %ebx
  49. L4:
  50.     leal    _A(,%ebx,8), %eax
  51.     movl    %eax, 4(%esp)
  52.     movl    $__ZSt3cin, (%esp)
  53.     call    __ZNSi10_M_extractIxEERSiRT_
  54.     incl    %ebx
  55.     movl    60(%esp), %eax
  56.     cmpl    %ebx, %eax
  57.     jg  L4
  58.     movl    %eax, 24(%esp)
  59.     movl    %eax, 28(%esp)
  60.     testl   %eax, %eax
  61.     jle L7
  62.     movl    $0, %esi
  63.     movl    $0, %edi
  64.     movl    $0, %ecx
  65.     movl    $0, 32(%esp)
  66.     movl    $0, 36(%esp)
  67.     movl    $0, 40(%esp)
  68.     movl    $0, 44(%esp)
  69. L5:
  70.     movl    _A(,%ecx,8), %eax
  71.     imull   %edi, %eax
  72.     movl    _A+4(,%ecx,8), %edx
  73.     imull   %esi, %edx
  74.     leal    (%eax,%edx), %ebx
  75.     movl    _A(,%ecx,8), %eax
  76.     mull    %esi
  77.     movl    %eax, 16(%esp)
  78.     addl    %ebx, %edx
  79.     movl    %edx, 20(%esp)
  80.     movl    16(%esp), %eax
  81.     movl    20(%esp), %edx
  82.     addl    32(%esp), %eax
  83.     adcl    36(%esp), %edx
  84.     subl    40(%esp), %eax
  85.     sbbl    44(%esp), %edx
  86.     movl    %eax, 32(%esp)
  87.     movl    %edx, 36(%esp)
  88.     movl    _A(,%ecx,8), %eax
  89.     movl    _A+4(,%ecx,8), %edx
  90.     addl    %eax, 40(%esp)
  91.     adcl    %edx, 44(%esp)
  92.     incl    %ecx
  93.     addl    $1, %esi
  94.     adcl    $0, %edi
  95.     cmpl    28(%esp), %ecx
  96.     jne L5
  97.     jmp L3
  98. L6:
  99.     movl    $0, 32(%esp)
  100.     movl    $0, 36(%esp)
  101.     movl    $0, 40(%esp)
  102.     movl    $0, 44(%esp)
  103.     jmp L3
  104. L7:
  105.     movl    $0, 32(%esp)
  106.     movl    $0, 36(%esp)
  107.     movl    $0, 40(%esp)
  108.     movl    $0, 44(%esp)
  109. L3:
  110.     movl    32(%esp), %eax
  111.     movl    36(%esp), %edx
  112.     addl    %eax, %eax
  113.     adcl    %edx, %edx
  114.     addl    40(%esp), %eax
  115.     adcl    44(%esp), %edx
  116.     movl    %eax, 4(%esp)
  117.     movl    %edx, 8(%esp)
  118.     movl    $__ZSt4cout, (%esp)
  119.     call    __ZNSo9_M_insertIxEERSoT_
  120.     movl    $LC0, 4(%esp)
  121.     movl    %eax, (%esp)
  122.     call    __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
  123.     movl    24(%esp), %edx
  124.     movl    %edx, 4(%esp)
  125.     movl    %eax, (%esp)
  126.     call    __ZNSolsEi
  127.     movl    $0, %eax
  128.     leal    -12(%ebp), %esp
  129.     popl    %ebx
  130.     .cfi_restore 3
  131.     popl    %esi
  132.     .cfi_restore 6
  133.     popl    %edi
  134.     .cfi_restore 7
  135.     popl    %ebp
  136.     .cfi_def_cfa 4, 4
  137.     .cfi_restore 5
  138.     ret
  139.     .cfi_endproc
  140. LFE983:
  141.     .def    __GLOBAL__sub_I_A;  .scl    3;  .type   32; .endef
  142. __GLOBAL__sub_I_A:
  143. LFB991:
  144.     .cfi_startproc
  145.     subl    $28, %esp
  146.     .cfi_def_cfa_offset 32
  147.     movl    $__ZStL8__ioinit, (%esp)
  148.     call    __ZNSt8ios_base4InitC1Ev
  149.     movl    $___tcf_0, (%esp)
  150.     call    _atexit
  151.     addl    $28, %esp
  152.     .cfi_def_cfa_offset 4
  153.     ret
  154.     .cfi_endproc
  155. LFE991:
  156.     .section    .ctors,"w"
  157.     .align 4
  158.     .long   __GLOBAL__sub_I_A
  159.     .globl  _A
  160.     .bss
  161.     .align 32
  162. _A:
  163.     .space 80
  164. .lcomm __ZStL8__ioinit,1,1
  165.     .def    __ZNSt8ios_base4InitD1Ev;   .scl    2;  .type   32; .endef
  166.     .def    __ZNSirsERi;    .scl    2;  .type   32; .endef
  167.     .def    __ZNSi10_M_extractIxEERSiRT_;   .scl    2;  .type   32; .endef
  168.     .def    __ZNSo9_M_insertIxEERSoT_;  .scl    2;  .type   32; .endef
  169.     .def    __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc;   .scl    2;  .type   32; .endef
  170.     .def    __ZNSolsEi; .scl    2;  .type   32; .endef
  171.     .def    __ZNSt8ios_base4InitC1Ev;   .scl    2;  .type   32; .endef
  172.     .def    _atexit;    .scl    2;  .type   32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement