Matches C semantics now. Turns around some instructions in tests, especially libm, but doesn't break anything.