Add sign extension "SEB/SEH" before compare. Fix #61881 (cherry picked from commit 755b4396)
mentioned in commit 1deeee3f