123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- .file "nexttoward_gen.c"
- .text
- ..TXTST0:
- # -- Begin nexttoward
- .text
- .align 16,0x90
- .globl nexttoward
- nexttoward:
- # parameter 1: %xmm0
- # parameter 2: 8 + %rsp
- ..B1.1:
- .cfi_startproc
- ..___tag_value_nexttoward.1:
- ..L2:
- movsd %xmm0, -8(%rsp)
- movzwl -2(%rsp), %eax
- andl $32752, %eax
- cmpl $32752, %eax
- je ..B1.22
- ..B1.2:
- movzwl 16(%rsp), %esi
- andl $32767, %esi
- cmpl $32767, %esi
- je ..B1.20
- ..B1.3:
- fldl -8(%rsp)
- fldt 8(%rsp)
- fucomi %st(1), %st
- jp ..B1.4
- je ..B1.24
- ..B1.4:
- fstp %st(0)
- movl -4(%rsp), %eax
- andl $2147483647, %eax
- orl -8(%rsp), %eax
- je ..B1.19
- ..B1.5:
- fstpt -24(%rsp)
- movb -15(%rsp), %dl
- movb 17(%rsp), %al
- andb $-128, %dl
- andb $-128, %al
- shrb $7, %dl
- shrb $7, %al
- movq -8(%rsp), %rcx
- cmpb %dl, %al
- jne ..B1.11
- ..B1.6:
- movzwl -16(%rsp), %eax
- andl $32767, %eax
- cmpl %esi, %eax
- jg ..B1.11
- ..B1.7:
- jne ..B1.12
- ..B1.8:
- movl -20(%rsp), %eax
- movl 12(%rsp), %edx
- cmpl %edx, %eax
- ja ..B1.11
- ..B1.9:
- jne ..B1.12
- ..B1.10:
- movl -24(%rsp), %eax
- cmpl 8(%rsp), %eax
- jbe ..B1.12
- ..B1.11:
- decq %rcx
- movq %rcx, -40(%rsp)
- jmp ..B1.13
- ..B1.12:
- incq %rcx
- movq %rcx, -40(%rsp)
- ..B1.13:
- movl -36(%rsp), %edx
- andl $2147483647, %edx
- lea -1048576(%rdx), %eax
- cmpl $2145386496, %eax
- jb ..B1.18
- ..B1.14:
- cmpl $1048576, %edx
- jae ..B1.16
- ..B1.15:
- lea _small_value_64(%rip), %rax
- movsd (%rax), %xmm0
- mulsd %xmm0, %xmm0
- movsd %xmm0, -32(%rsp)
- movsd -40(%rsp), %xmm0
- ret
- ..B1.16:
- lea _large_value_64(%rip), %rax
- movsd (%rax), %xmm0
- mulsd %xmm0, %xmm0
- movsd %xmm0, -32(%rsp)
- movsd -40(%rsp), %xmm0
- ..B1.17:
- ret
- ..B1.18:
- movsd -40(%rsp), %xmm0
- ret
- ..B1.19:
- fstp %st(0)
- movb 17(%rsp), %al
- lea _small_value_64(%rip), %rdi
- andb $-128, %al
- lea _smallest_value_64(%rip), %rdx
- shrb $7, %al
- movsd (%rdi), %xmm0
- mulsd %xmm0, %xmm0
- movzbl %al, %ecx
- movsd %xmm0, -32(%rsp)
- movq (%rdx,%rcx,8), %rsi
- movq %rsi, -40(%rsp)
- jmp ..B1.18
- ..B1.20:
- movq $0x8000000000000000, %rax
- cmpq 8(%rsp), %rax
- je ..B1.3
- ..B1.21:
- fldl -8(%rsp)
- fldt 8(%rsp)
- fmulp %st, %st(1)
- fstpl -40(%rsp)
- movsd -40(%rsp), %xmm0
- ret
- ..B1.22:
- testl $1048575, -4(%rsp)
- jne ..B1.21
- ..B1.23:
- cmpl $0, -8(%rsp)
- jne ..B1.21
- jmp ..B1.2
- ..B1.24:
- fstp %st(1)
- fstpl -40(%rsp)
- movsd -40(%rsp), %xmm0
- ret
- .align 16,0x90
- .cfi_endproc
- .type nexttoward,@function
- .size nexttoward,.-nexttoward
- .data
- # -- End nexttoward
- .section .rodata, "a"
- .align 4
- .align 4
- _small_value_64:
- .long 0
- .long 24117248
- .long 0
- .long 2171600896
- .type _small_value_64,@object
- .size _small_value_64,16
- .align 4
- _large_value_64:
- .long 0
- .long 2121269248
- .long 0
- .long 4268752896
- .type _large_value_64,@object
- .size _large_value_64,16
- .align 4
- _smallest_value_64:
- .long 1
- .long 0
- .long 1
- .long 2147483648
- .type _smallest_value_64,@object
- .size _smallest_value_64,16
- .data
- .section .note.GNU-stack, ""
- .section .eh_frame,"a",@progbits
- .eh_frame_seg:
- .align 1
- # End
|