Use, in uncovered part, the END() macro in order to improve debugging.

In this specific case, Valgrind won't get confused when analyzing such
functions.

Sponsored by:	Sandvine Incorporated
Tested by:	emaste
MFC:		3 days
This commit is contained in:
attilio 2009-05-25 14:37:10 +00:00
parent 4fb8e988d3
commit 4af1dcdee0
57 changed files with 60 additions and 0 deletions

View File

@ -38,4 +38,5 @@ ENTRY(_atomic_lock)
movl $1, %eax
xchgq %rax, (%rdi)
ret
END(_atomic_lock)

View File

@ -39,4 +39,5 @@ ENTRY(_atomic_lock)
movl $1, %eax
xchg %eax, (%ecx)
ret
END(_atomic_lock)

View File

@ -58,6 +58,7 @@ ENTRY(_setjmp)
movl %edi,20(%eax)
xorl %eax,%eax
ret
END(_setjmp)
ENTRY(_longjmp)
movl 4(%esp),%edx
@ -73,3 +74,4 @@ ENTRY(_longjmp)
incl %eax
1: movl %ecx,0(%esp)
ret
END(_longjmp)

View File

@ -30,4 +30,5 @@ __FBSDID("$FreeBSD$")
ENTRY(sqrt)
sqrtsd %xmm0, %xmm0
ret
END(sqrt)

View File

@ -30,3 +30,4 @@ __FBSDID("$FreeBSD$")
ENTRY(sqrtf)
sqrtss %xmm0, %xmm0
ret
END(sqrtf)

View File

@ -34,3 +34,4 @@ __FBSDID("$FreeBSD$")
ENTRY(fn)
cvtsd2si %xmm0, %rax
ret
END(fn)

View File

@ -34,3 +34,4 @@ __FBSDID("$FreeBSD$")
ENTRY(fn)
cvtss2si %xmm0, %rax
ret
END(fn)

View File

@ -63,3 +63,4 @@ ENTRY(remquo)
fstpl -8(%rsp)
movsd -8(%rsp),%xmm0
ret
END(remquo)

View File

@ -63,3 +63,4 @@ ENTRY(remquof)
fstps -4(%rsp)
movss -4(%rsp),%xmm0
ret
END(remquof)

View File

@ -37,3 +37,4 @@ ENTRY(scalbn)
fstpl -8(%rsp)
movsd -8(%rsp),%xmm0
ret
END(scalbn)

View File

@ -37,6 +37,7 @@ ENTRY(scalbnf)
fstps -8(%rsp)
movss -8(%rsp),%xmm0
ret
END(scalbnf)
.globl CNAME(ldexpf)
.set CNAME(ldexpf),CNAME(scalbnf)

View File

@ -14,6 +14,7 @@ ENTRY(scalbnl)
fscale
fstp %st(1)
ret
END(scalbnl)
.globl CNAME(ldexpl)
.set CNAME(ldexpl),CNAME(scalbnl)

View File

@ -96,3 +96,4 @@ x_Inf_or_NaN:
x_not_minus_Inf:
fldl 4(%esp)
ret
END(exp)

View File

@ -46,3 +46,4 @@ ENTRY(fmod)
jp 1b
fstp %st(1)
ret
END(fmod)

View File

@ -42,3 +42,4 @@ ENTRY(log)
fldl 4(%esp)
fyl2x
ret
END(log)

View File

@ -42,3 +42,4 @@ ENTRY(log10)
fldl 4(%esp)
fyl2x
ret
END(log10)

View File

@ -13,3 +13,4 @@ ENTRY(log10f)
flds 4(%esp)
fyl2x
ret
END(log10f)

View File

@ -46,3 +46,4 @@ ENTRY(remainder)
jp 1b
fstp %st(1)
ret
END(remainder)

View File

@ -17,3 +17,4 @@ ENTRY(remainderf)
jp 1b
fstp %st(1)
ret
END(remainderf)

View File

@ -41,3 +41,4 @@ ENTRY(sqrt)
fldl 4(%esp)
fsqrt
ret
END(sqrt)

View File

@ -12,3 +12,4 @@ ENTRY(sqrtf)
flds 4(%esp)
fsqrt
ret
END(sqrtf)

View File

@ -56,3 +56,4 @@ ENTRY(ceil)
leave
ret
END(ceil)

View File

@ -27,3 +27,4 @@ ENTRY(ceilf)
leave
ret
END(ceilf)

View File

@ -25,3 +25,4 @@ ENTRY(ceill)
leave
ret
END(ceill)

View File

@ -46,3 +46,4 @@ ENTRY(copysign)
movl %eax,8(%esp)
fldl 4(%esp)
ret
END(copysign)

View File

@ -17,3 +17,4 @@ ENTRY(copysignf)
movl %eax,4(%esp)
flds 4(%esp)
ret
END(copysignf)

View File

@ -15,3 +15,4 @@ ENTRY(copysignl)
movl %eax,12(%esp)
fldt 4(%esp)
ret
END(copysignl)

View File

@ -54,3 +54,4 @@ ENTRY(cos)
fstp %st(1)
fcos
ret
END(cos)

View File

@ -44,3 +44,4 @@ ENTRY(finite)
setneb %al
andl $0x000000ff, %eax
ret
END(finite)

View File

@ -56,3 +56,4 @@ ENTRY(floor)
leave
ret
END(floor)

View File

@ -27,3 +27,4 @@ ENTRY(floorf)
leave
ret
END(floorf)

View File

@ -25,3 +25,4 @@ ENTRY(floorl)
leave
ret
END(floorl)

View File

@ -34,3 +34,4 @@ ENTRY(llrint)
popl %eax
popl %edx
ret
END(llrint)

View File

@ -34,3 +34,4 @@ ENTRY(llrintf)
popl %eax
popl %edx
ret
END(llrintf)

View File

@ -42,3 +42,4 @@ ENTRY(logb)
fxtract
fstp %st
ret
END(logb)

View File

@ -13,3 +13,4 @@ ENTRY(logbf)
fxtract
fstp %st
ret
END(logbf)

View File

@ -33,3 +33,4 @@ ENTRY(lrint)
fistpl (%esp)
popl %eax
ret
END(lrint)

View File

@ -33,3 +33,4 @@ ENTRY(lrintf)
fistpl (%esp)
popl %eax
ret
END(lrintf)

View File

@ -60,3 +60,4 @@ ENTRY(remquo)
movl 20(%esp),%ecx
movl %eax,(%ecx)
ret
END(remquo)

View File

@ -60,3 +60,4 @@ ENTRY(remquof)
movl 12(%esp),%ecx
movl %eax,(%ecx)
ret
END(remquof)

View File

@ -41,3 +41,4 @@ ENTRY(rint)
fldl 4(%esp)
frndint
ret
END(rint)

View File

@ -12,3 +12,4 @@ ENTRY(rintf)
flds 4(%esp)
frndint
ret
END(rintf)

View File

@ -43,3 +43,4 @@ ENTRY(scalbn)
fscale
fstp %st(1)
ret
END(scalbn)

View File

@ -14,6 +14,7 @@ ENTRY(scalbnf)
fscale
fstp %st(1) /* bug fix for fp stack overflow */
ret
END(scalbnf)
.globl CNAME(ldexpf)
.set CNAME(ldexpf),CNAME(scalbnf)

View File

@ -14,6 +14,7 @@ ENTRY(scalbnl)
fscale
fstp %st(1)
ret
END(scalbnl)
.globl CNAME(ldexpl)
.set CNAME(ldexpl),CNAME(scalbnl)

View File

@ -42,3 +42,4 @@ ENTRY(significand)
fxtract
fstp %st(1)
ret
END(significand)

View File

@ -13,3 +13,4 @@ ENTRY(significandf)
fxtract
fstp %st(1)
ret
END(significandf)

View File

@ -54,3 +54,4 @@ ENTRY(sin)
fstp %st(1)
fsin
ret
END(sin)

View File

@ -56,3 +56,4 @@ ENTRY(tan)
fptan
fstp %st(0)
ret
END(tan)

View File

@ -24,3 +24,4 @@ ENTRY(trunc)
leave
ret
END(trunc)

View File

@ -24,3 +24,4 @@ ENTRY(truncf)
leave
ret
END(truncf)

View File

@ -24,3 +24,4 @@ ENTRY(truncl)
leave
ret
END(truncl)

View File

@ -32,3 +32,4 @@ ENTRY(fma, 3)
fma.d f8 = f8, f9, f10
br.ret.sptk b0
}
END(fma)

View File

@ -32,3 +32,4 @@ ENTRY(fmaf, 3)
fma.s f8 = f8, f9, f10
br.ret.sptk b0
}
END(fmaf)

View File

@ -32,3 +32,4 @@ ENTRY(fmal, 3)
fma f8 = f8, f9, f10
br.ret.sptk b0
}
END(fmal)

View File

@ -99,6 +99,7 @@ ENTRY(uts_to_thread)
pop %ebx /* %ebx off stack */
popf /* flags off stack */
5: ret /* %eip off stack */
END(uts_to_thread)
/*
* int thread_to_uts(struct kse_thr_mailbox *tm, struct kse_mailbox *km);
@ -154,4 +155,5 @@ ENTRY(thread_to_uts)
pushl KM_FUNC_OFFSET(%edx) /* .. the uts can return to itself */
pushl KM_FUNC_OFFSET(%edx) /* push the address of the uts func */
2: ret
END(thread_to_uts)

View File

@ -99,6 +99,7 @@ ENTRY(uts_to_thread)
pop %ebx /* %ebx off stack */
popf /* flags off stack */
5: ret /* %eip off stack */
END(uts_to_thread)
/*
* int thread_to_uts(struct kse_thr_mailbox *tm, struct kse_mailbox *km);
@ -154,4 +155,5 @@ ENTRY(thread_to_uts)
pushl KM_FUNC_OFFSET(%edx) /* .. the uts can return to itself */
pushl KM_FUNC_OFFSET(%edx) /* push the address of the uts func */
2: ret
END(thread_to_uts)