File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
lldb/packages/Python/lldbsuite/test Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,10 @@ def getArchitecture():
240
240
arch = "x86_64"
241
241
if arch in ["armv7l" , "armv8l" ]:
242
242
arch = "arm"
243
+ if re .match ("rv64*" , arch ):
244
+ arch = "riscv64"
245
+ if re .match ("rv32*" , arch ):
246
+ arch = "riscv32"
243
247
return arch
244
248
245
249
Original file line number Diff line number Diff line change @@ -1393,6 +1393,11 @@ def isLoongArchLSX(self):
1393
1393
def isLoongArchLASX (self ):
1394
1394
return self .isLoongArch () and "lasx" in self .getCPUInfo ()
1395
1395
1396
+ def isRISCV (self ):
1397
+ """Returns true if the architecture is RISCV64 or RISCV32."""
1398
+ arch = self .getArchitecture ()
1399
+ return arch in ["riscv64" , "riscv32" ]
1400
+
1396
1401
def getArchitecture (self ):
1397
1402
"""Returns the architecture in effect the test suite is running with."""
1398
1403
return lldbplatformutil .getArchitecture ()
You can’t perform that action at this time.
0 commit comments