-
-
Save maxp/5975431 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .file "c1.cpp" | |
| .section .rodata.str1.1,"aMS",@progbits,1 | |
| .LC1: | |
| .string "%g %gi" | |
| .section .text.startup,"ax",@progbits | |
| .p2align 4,,15 | |
| .globl main | |
| .type main, @function | |
| main: | |
| .LFB42: | |
| .cfi_startproc | |
| movsd .LC0(%rip), %xmm1 | |
| xorl %eax, %eax | |
| movsd .LC2(%rip), %xmm7 | |
| movapd %xmm1, %xmm2 | |
| movapd %xmm1, %xmm0 | |
| movsd .LC3(%rip), %xmm6 | |
| mulsd %xmm1, %xmm2 | |
| movsd .LC4(%rip), %xmm5 | |
| movapd %xmm2, %xmm3 | |
| .p2align 4,,10 | |
| .p2align 3 | |
| .L7: | |
| mulsd %xmm0, %xmm1 | |
| movapd %xmm2, %xmm0 | |
| addl $1, %eax | |
| addsd %xmm7, %xmm0 | |
| addsd %xmm1, %xmm1 | |
| subsd %xmm3, %xmm0 | |
| addsd %xmm6, %xmm1 | |
| movapd %xmm0, %xmm2 | |
| movapd %xmm1, %xmm3 | |
| mulsd %xmm0, %xmm2 | |
| mulsd %xmm1, %xmm3 | |
| movapd %xmm2, %xmm4 | |
| addsd %xmm3, %xmm4 | |
| comisd %xmm5, %xmm4 | |
| ja .L7 | |
| cmpl $99, %eax | |
| jle .L7 | |
| subq $8, %rsp | |
| .cfi_def_cfa_offset 16 | |
| movl $.LC1, %esi | |
| movl $1, %edi | |
| movl $2, %eax | |
| call __printf_chk | |
| xorl %eax, %eax | |
| addq $8, %rsp | |
| .cfi_def_cfa_offset 8 | |
| ret | |
| .cfi_endproc | |
| .LFE42: | |
| .size main, .-main | |
| .section .rodata.cst8,"aM",@progbits,8 | |
| .align 8 | |
| .LC0: | |
| .long 2576980378 | |
| .long 1069128089 | |
| .align 8 | |
| .LC2: | |
| .long 0 | |
| .long 1072693248 | |
| .align 8 | |
| .LC3: | |
| .long 0 | |
| .long 1073741824 | |
| .align 8 | |
| .LC4: | |
| .long 3944497965 | |
| .long 1058682594 | |
| .ident "GCC: (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3" | |
| .section .note.GNU-stack,"",@progbits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment