Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / python_api / get-value-32bit-int / TestGetValue32BitInt.py
blobb2974ab1c08a667a818cbe944cc8b26cbcc55242
1 """
2 Check that SBValue.GetValueAsSigned() does the right thing for a 32-bit -1.
3 """
5 import lldb
6 from lldbsuite.test.lldbtest import *
7 import lldbsuite.test.lldbutil as lldbutil
10 class TestCase(TestBase):
11 NO_DEBUG_INFO_TESTCASE = True
13 def test_with_run_command(self):
14 self.build()
15 lldbutil.run_to_source_breakpoint(
16 self, "// break here", lldb.SBFileSpec("main.cpp")
19 self.assertEqual(self.frame().FindVariable("myvar").GetValueAsSigned(), -1)
20 self.assertEqual(
21 self.frame().FindVariable("myvar").GetValueAsUnsigned(), 0xFFFFFFFF