Similar to PR 5350, but s_nearbyint{,f}.c got missed in that fix.
Fixed in commit f56ed78d4ad3fa029df5db1110aee06f1e26f199
A testcase in libm-test.inc would be good, if there isn't one already there for this bug. (And, bug numbers of bugs fixed in ports go in libc's NEWS file.)