summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/rdar42038760/TestScalarURem.py
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2018-07-12 00:31:04 +0000
committerDavide Italiano <davide@freebsd.org>2018-07-12 00:31:04 +0000
commita9d84cb9d8fbe357c9365421e07895a9be1e44fa (patch)
tree35ec49af2ea835bbe780f59d57074e9b642c1b56 /lldb/packages/Python/lldbsuite/test/expression_command/rdar42038760/TestScalarURem.py
parent034adf26830fb9723138b276075068125ed208a7 (diff)
downloadbcm5719-llvm-a9d84cb9d8fbe357c9365421e07895a9be1e44fa.tar.gz
bcm5719-llvm-a9d84cb9d8fbe357c9365421e07895a9be1e44fa.zip
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/rdar42038760/TestScalarURem.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/rdar42038760/TestScalarURem.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/rdar42038760/TestScalarURem.py b/lldb/packages/Python/lldbsuite/test/expression_command/rdar42038760/TestScalarURem.py
new file mode 100644
index 00000000000..03424658f3e
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/expression_command/rdar42038760/TestScalarURem.py
@@ -0,0 +1,4 @@
+from lldbsuite.test import lldbinline
+from lldbsuite.test import decorators
+
+lldbinline.MakeInlineTest(__file__, globals(), None)
OpenPOWER on IntegriCloud