Skip to content

Commit aad27a8

Browse files
committed
[lldb] Check for arm64 in TestDisassembleRawData
This test checks for `aarch64` but the lit config could also contain `arm64`. This change adds `arm64` to make the test pass in all cases. Differential Revision: https://reviews.llvm.org/D116912
1 parent 268a42d commit aad27a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/test/API/python_api/disassemble-raw-data/TestDisassembleRawData.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_disassemble_raw_data(self):
3131
elif re.match("powerpc64le", arch):
3232
target = self.dbg.CreateTargetWithFileAndTargetTriple("", "powerpc64le")
3333
raw_bytes = bytearray([0x00, 0x00, 0x80, 0x38])
34-
elif arch == "aarch64":
34+
elif arch in ("aarch64", "arm64"):
3535
target = self.dbg.CreateTargetWithFileAndTargetTriple("", "aarch64")
3636
raw_bytes = bytearray([0x60, 0x0c, 0x80, 0x52])
3737
elif arch == "arm":
@@ -57,7 +57,7 @@ def test_disassemble_raw_data(self):
5757
elif re.match("powerpc64le", arch):
5858
self.assertEqual(inst.GetMnemonic(target), "li")
5959
self.assertEqual(inst.GetOperands(target), "4, 0")
60-
elif arch == "aarch64":
60+
elif arch in ("aarch64", "arm64"):
6161
self.assertEqual(inst.GetMnemonic(target), "mov")
6262
self.assertEqual(inst.GetOperands(target), "w0, #0x63")
6363
elif arch == "arm":

0 commit comments

Comments
 (0)