[Lldb-commits] [PATCH] D116912: [lldb] Check for arm64 in TestDisassembleRawData
Dave Lee via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Jan 9 20:14:36 PST 2022
kastiglione created this revision.
kastiglione added reviewers: jasonmolenda, JDevlieghere.
Herald added subscribers: omjavaid, kristof.beyls.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116912
Files:
lldb/test/API/python_api/disassemble-raw-data/TestDisassembleRawData.py
Index: lldb/test/API/python_api/disassemble-raw-data/TestDisassembleRawData.py
===================================================================
--- lldb/test/API/python_api/disassemble-raw-data/TestDisassembleRawData.py
+++ lldb/test/API/python_api/disassemble-raw-data/TestDisassembleRawData.py
@@ -31,7 +31,7 @@
elif re.match("powerpc64le", arch):
target = self.dbg.CreateTargetWithFileAndTargetTriple("", "powerpc64le")
raw_bytes = bytearray([0x00, 0x00, 0x80, 0x38])
- elif arch == "aarch64":
+ elif arch in ("aarch64", "arm64"):
target = self.dbg.CreateTargetWithFileAndTargetTriple("", "aarch64")
raw_bytes = bytearray([0x60, 0x0c, 0x80, 0x52])
elif arch == "arm":
@@ -57,7 +57,7 @@
elif re.match("powerpc64le", arch):
self.assertEqual(inst.GetMnemonic(target), "li")
self.assertEqual(inst.GetOperands(target), "4, 0")
- elif arch == "aarch64":
+ elif arch in ("aarch64", "arm64"):
self.assertEqual(inst.GetMnemonic(target), "mov")
self.assertEqual(inst.GetOperands(target), "w0, #0x63")
elif arch == "arm":
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116912.398492.patch
Type: text/x-patch
Size: 1185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220110/fc3863ef/attachment.bin>
More information about the lldb-commits
mailing list