Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / python_api / sbvalue_unsigned_enum_bitfield_value / TestSBValueUnsignedEnumBitField.py
blob27b676009f04c53ddca82664e6167e0b6dc1912e
1 """
2 Test that SBValue doesn't incorrectly sign-extend
3 the Scalar value of a bitfield that has an unsigned
4 enum type.
6 We test this by assigning to a bit-field a value
7 that is out-of-range of it's signed counterpart.
8 I.e., with a bit-field of width 4, assigning
9 8 to it would be out-of-range if we treated it
10 as a signed. If LLDB were to sign-extend the Scalar
11 (which shouldn't happen for unsigned bit-fields)
12 it would left-fill the result with 1s; we test
13 for this not to happen.
14 """
16 import lldbsuite.test.lldbinline as lldbinline
17 from lldbsuite.test.decorators import *
19 lldbinline.MakeInlineTest(__file__, globals(), [skipIf(dwarf_version=["<", "3"])])