123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- .file "nextafter_gen.c"
- .text
- ..TXTST0:
- # -- Begin nextafter
- .text
- .align 16,0x90
- .globl nextafter
- nextafter:
- # parameter 1: %xmm0
- # parameter 2: %xmm1
- ..B1.1:
- .cfi_startproc
- ..___tag_value_nextafter.1:
- ..L2:
- movsd %xmm0, -16(%rsp)
- movzwl -10(%rsp), %r8d
- andl $32752, %r8d
- shrl $4, %r8d
- movsd %xmm1, -8(%rsp)
- cmpl $2047, %r8d
- je ..B1.23
- ..B1.2:
- movzwl -2(%rsp), %edi
- andl $32752, %edi
- shrl $4, %edi
- cmpl $2047, %edi
- je ..B1.20
- ..B1.3:
- movsd -8(%rsp), %xmm0
- movsd -16(%rsp), %xmm1
- ucomisd %xmm0, %xmm1
- jp ..B1.4
- je ..B1.17
- ..B1.4:
- movl -12(%rsp), %edx
- movl %edx, %eax
- andl $2147483647, %eax
- orl -16(%rsp), %eax
- je ..B1.19
- ..B1.5:
- movl %edx, %eax
- movl -4(%rsp), %ecx
- xorl %ecx, %eax
- movq -16(%rsp), %rsi
- testl $-2147483648, %eax
- jne ..B1.11
- ..B1.6:
- cmpl %edi, %r8d
- jg ..B1.11
- ..B1.7:
- jne ..B1.12
- ..B1.8:
- andl $1048575, %edx
- andl $1048575, %ecx
- cmpl %ecx, %edx
- jg ..B1.11
- ..B1.9:
- jne ..B1.12
- ..B1.10:
- movl -16(%rsp), %eax
- cmpl -8(%rsp), %eax
- jbe ..B1.12
- ..B1.11:
- decq %rsi
- movq %rsi, -16(%rsp)
- jmp ..B1.13
- ..B1.12:
- incq %rsi
- movq %rsi, -16(%rsp)
- ..B1.13:
- movl -12(%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, -24(%rsp)
- movsd -16(%rsp), %xmm0
- ret
- ..B1.16:
- lea _large_value_64(%rip), %rax
- movsd (%rax), %xmm0
- mulsd %xmm0, %xmm0
- movsd %xmm0, -24(%rsp)
- movsd -16(%rsp), %xmm0
- ..B1.17:
- ret
- ..B1.18:
- movsd -16(%rsp), %xmm0
- ret
- ..B1.19:
- movb -1(%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, -24(%rsp)
- movq (%rdx,%rcx,8), %rsi
- movq %rsi, -16(%rsp)
- jmp ..B1.18
- ..B1.20:
- testl $1048575, -4(%rsp)
- jne ..B1.22
- ..B1.21:
- cmpl $0, -8(%rsp)
- je ..B1.3
- ..B1.22:
- movsd -16(%rsp), %xmm0
- addsd -8(%rsp), %xmm0
- ret
- ..B1.23:
- testl $1048575, -12(%rsp)
- jne ..B1.22
- ..B1.24:
- cmpl $0, -16(%rsp)
- jne ..B1.22
- jmp ..B1.2
- .align 16,0x90
- .cfi_endproc
- .type nextafter,@function
- .size nextafter,.-nextafter
- .data
- # -- End nextafter
- .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
|