Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / types / TestLongTypesExpr.py
blobcfa538b5b226d42691e27f9ee6e14f5618a7b537
1 """
2 Test that variable expressions of integer basic types are evaluated correctly.
3 """
5 import AbstractBase
7 from lldbsuite.test.decorators import *
10 class LongTypesExprTestCase(AbstractBase.GenericTester):
11 def test_long_type(self):
12 """Test that long-type variable expressions are evaluated correctly."""
13 self.build_and_run_expr("long.cpp", ["long"])
15 @skipUnlessDarwin
16 def test_long_type_from_block(self):
17 """Test that long-type variables are displayed correctly from a block."""
18 self.build_and_run_expr("long.cpp", ["long"], bc=True)
20 def test_unsigned_long_type(self):
21 """Test that 'unsigned long'-type variable expressions are evaluated correctly."""
22 self.build_and_run_expr("unsigned_long.cpp", ["unsigned", "long"])
24 @skipUnlessDarwin
25 def test_unsigned_long_type_from_block(self):
26 """Test that 'unsigned_long'-type variables are displayed correctly from a block."""
27 self.build_and_run_expr("unsigned_long.cpp", ["unsigned", "long"], bc=True)
29 def test_long_long_type(self):
30 """Test that 'long long'-type variable expressions are evaluated correctly."""
31 self.build_and_run_expr("long_long.cpp", ["long long"])
33 @skipUnlessDarwin
34 def test_long_long_type_from_block(self):
35 """Test that 'long_long'-type variables are displayed correctly from a block."""
36 self.build_and_run_expr("long_long.cpp", ["long long"], bc=True)
38 def test_unsigned_long_long_type(self):
39 """Test that 'unsigned long long'-type variable expressions are evaluated correctly."""
40 self.build_and_run_expr("unsigned_long_long.cpp", ["unsigned", "long long"])
42 @skipUnlessDarwin
43 def test_unsigned_long_long_type_from_block(self):
44 """Test that 'unsigned_long_long'-type variables are displayed correctly from a block."""
45 self.build_and_run_expr(
46 "unsigned_long_long.cpp", ["unsigned", "long long"], bc=True