TestSiX-O1.s 4.82 KiB
	.file	"TestSiX_MPI.c"
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Starting writing to file \"result11.txt\""
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"./result11.txt"
.LC3:
	.string	"Beginning test.\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Testing Si(x) with MPI optimizations with preferred parameters\n"
	.align 8
.LC7:
	.string	"Start = %.5f, Stop = %.5f, Step = %.5f\n"
	.align 8
.LC8:
	.string	"i, res, error, mid, mid_error, time, mid_time\n"
	.section	.rodata.str1.1
.LC9:
	.string	"iterating"
.LC10:
	.string	"%i\n"
	.section	.rodata.str1.8
	.align 8
.LC13:
	.string	"%i, %.10f, %.10f, %.10f, %.10f, %.5f, %.5f\n"
	.section	.rodata.str1.1
.LC14:
	.string	"\nComplete"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1629:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	movl	$0, %esi
	movl	$0, %edi
	call	MPI_Init@PLT
	leaq	48(%rsp), %rsi
	movl	$1140850688, %edi
	call	MPI_Comm_size@PLT
	leaq	52(%rsp), %rsi
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
movl $1140850688, %edi call MPI_Comm_rank@PLT cmpl $0, 52(%rsp) je .L13 .L2: movl $0, %r13d vxorpd %xmm5, %xmm5, %xmm5 vmovsd %xmm5, 32(%rsp) vmovsd %xmm5, 24(%rsp) leaq .LC10(%rip), %r15 movl $3999999997, %r12d jmp .L7 .L13: leaq .LC1(%rip), %rdi call puts@PLT movl $511, %esi leaq .LC2(%rip), %rdi call creat@PLT movl %eax, %r14d leaq .LC3(%rip), %rdx movl $1, %esi movl %eax, %edi movl $0, %eax call __dprintf_chk@PLT leaq .LC4(%rip), %rdx movl $1, %esi movl %r14d, %edi movl $0, %eax call __dprintf_chk@PLT vmovsd .LC5(%rip), %xmm0 vmovsd %xmm0, %xmm0, %xmm2 vmovsd .LC6(%rip), %xmm1 leaq .LC7(%rip), %rdx movl $1, %esi movl %r14d, %edi movl $3, %eax call __dprintf_chk@PLT leaq .LC8(%rip), %rdx movl $1, %esi movl %r14d, %edi movl $0, %eax call __dprintf_chk@PLT leaq .LC9(%rip), %rdi call puts@PLT jmp .L2 .L15: movl %r13d, %edx movq %r15, %rsi movl $1, %edi movl $0, %eax call __printf_chk@PLT call MPI_Wtime@PLT vmovsd %xmm0, 40(%rsp) jmp .L3 .L6: addl $1, %r13d cmpl $10, %r13d je .L14 .L7: cmpl $0, 52(%rsp) je .L15 .L3: movq $0x000000000, 56(%rsp) movq $0x000000000, 64(%rsp) vxorpd %xmm5, %xmm5, %xmm5 vcvtsi2sdl 52(%rsp), %xmm5, %xmm0 vmulsd .LC5(%rip), %xmm0, %xmm0 vaddsd .LC5(%rip), %xmm0, %xmm1 vmovsd %xmm1, (%rsp) movl 48(%rsp), %eax
141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
movslq %eax, %rbp cmpq %r12, %rbp ja .L4 vcvtsi2sdl %eax, %xmm5, %xmm0 vmulsd .LC5(%rip), %xmm0, %xmm1 vmovsd %xmm1, 16(%rsp) movq %rbp, %rbx vxorpd %xmm1, %xmm1, %xmm1 vmovsd %xmm1, 8(%rsp) .L5: vmovsd (%rsp), %xmm0 call sin@PLT vmovsd (%rsp), %xmm6 vdivsd %xmm6, %xmm0, %xmm0 vmulsd .LC5(%rip), %xmm0, %xmm0 vaddsd 8(%rsp), %xmm0, %xmm7 vmovsd %xmm7, 8(%rsp) vaddsd 16(%rsp), %xmm6, %xmm2 vmovsd %xmm2, (%rsp) addq %rbp, %rbx cmpq %r12, %rbx jbe .L5 vmovsd %xmm7, 64(%rsp) .L4: movl $1140850688, %edi call MPI_Barrier@PLT leaq 56(%rsp), %rsi leaq 64(%rsp), %rdi subq $8, %rsp .cfi_def_cfa_offset 152 pushq $1140850688 .cfi_def_cfa_offset 160 movl $0, %r9d movl $1476395011, %r8d movl $1275070475, %ecx movl $1, %edx call MPI_Reduce@PLT addq $16, %rsp .cfi_def_cfa_offset 144 cmpl $0, 52(%rsp) jne .L6 call MPI_Wtime@PLT vsubsd 40(%rsp), %xmm0, %xmm4 vaddsd 24(%rsp), %xmm4, %xmm7 vmovsd %xmm7, 24(%rsp) vmovsd 56(%rsp), %xmm0 vaddsd 32(%rsp), %xmm0, %xmm1 vmovsd %xmm1, 32(%rsp) leal 1(%r13), %eax vxorpd %xmm5, %xmm5, %xmm5 vcvtsi2sdl %eax, %xmm5, %xmm5 vdivsd %xmm5, %xmm1, %xmm2 vmovsd .LC11(%rip), %xmm1 vsubsd %xmm1, %xmm2, %xmm3 vandpd .LC12(%rip), %xmm3, %xmm3 vsubsd %xmm1, %xmm0, %xmm1 vandpd .LC12(%rip), %xmm1, %xmm1 vdivsd %xmm5, %xmm7, %xmm5 movl %r13d, %ecx leaq .LC13(%rip), %rdx movl $1, %esi movl %r14d, %edi movl $6, %eax call __dprintf_chk@PLT jmp .L6 .L14: cmpl $0, 52(%rsp) je .L16 .L8: call MPI_Finalize@PLT
211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
movl $0, %edi call exit@PLT .L16: movl %r14d, %edi call close@PLT leaq .LC14(%rip), %rdi call puts@PLT jmp .L8 .cfi_endproc .LFE1629: .size main, .-main .section .rodata.cst8,"aM",@progbits,8 .align 8 .LC5: .long -350469331 .long 1057634018 .align 8 .LC6: .long 0 .long 1091070464 .align 8 .LC11: .long 1413754136 .long 1073291771 .section .rodata.cst16,"aM",@progbits,16 .align 16 .LC12: .long -1 .long 2147483647 .long 0 .long 0 .ident "GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4: