Software backend: make TEV rounding match hardware.

Formulas stolen from gxtest.  (Not sure how "==" got turned into "!=", but
I'm pretty confident the patched version is correct.)
Software backend: don't skip red component in TEV.
Merge pull request #275 from magumagu/swbackend-fix-tev

Software backend: TEV combiner compare mode fixes