Enable MONO_ARCH_EMULATE_FCONV_TO_U4 on PPC (mono/mono#15991)
authorCalvin Buckley <calvin@cmpct.info>
Fri, 2 Aug 2019 23:00:02 +0000 (20:00 -0300)
committerZoltan Varga <vargaz@gmail.com>
Fri, 2 Aug 2019 23:00:02 +0000 (19:00 -0400)
commit84e2b716fac9d159e92e076e7d9ade7f94160903
tree3d0a4d23b3d3d26c1f3dc9f3eafa46590f250270
parentf8c201e8c8c6825fc59011715fdb54a571458104
Enable MONO_ARCH_EMULATE_FCONV_TO_U4 on PPC (mono/mono#15991)

Fixes regression related to floating point introduced in mono/mono#15930.

This does mean we have to take a slower path instead of using the
PPC instruction, but it provides consistent results. Other CPUs
have to do this too, so it's not like PPC is impacted unfairly.
(i.e, NaN gives an inconsistent result, at least with POWER7 and
some amd64 CPUs tested)

Fixes mono/mono#15990.

Commit migrated from https://github.com/mono/mono/commit/e70ac8c6ae7ff3f03517be90babb8f7c25d18b97
src/mono/mono/mini/mini-ppc.h