Davide Italiano a9d84cb9d8 [IRInterpreter] Fix misevaluation of interpretation expressions with urem.
Scalar::MakeUnsigned was implemented incorrectly so it didn't
really change the sign of the type (leaving signed types signed).
This showed up as a misevaluation when IR-interpreting urem but
it's likely to arise in other contexts.

This commit fixes the definition, and adds a test to make
sure this won't regress in future (hopefully).

Fixes rdar://problem/42038760 and LLVM PR38076

Differential Revision:  https://reviews.llvm.org/D49155

llvm-svn: 336872
2018-07-12 00:31:04 +00:00
..
2017-04-06 21:28:29 +00:00
2018-04-30 16:49:04 +00:00
2018-05-29 09:10:46 +00:00
2017-05-12 04:51:55 +00:00
2017-04-06 21:28:29 +00:00
2018-04-30 16:49:04 +00:00
2018-04-30 16:49:04 +00:00
2018-04-30 16:49:04 +00:00
2018-04-30 16:49:04 +00:00
2018-06-01 12:06:45 +00:00
2017-04-06 21:28:29 +00:00
2017-04-06 21:28:29 +00:00
2018-05-29 09:10:46 +00:00