Add initial support for RISC-V architecture and update relevant files

This commit is contained in:
Metehan Dundar
2025-03-11 05:10:03 +01:00
parent 7e546d970f
commit 653c27135d
10 changed files with 1009 additions and 128 deletions

View File

@@ -196,9 +196,9 @@ class TestParserRISCV(unittest.TestCase):
self.assertGreater(len(parsed), 80) # More than 80 lines should be parsed
# Test parsing specific parts of the file
# Find vector_add label
vector_add_idx = next((i for i, instr in enumerate(parsed) if instr.label == "vector_add"), None)
self.assertIsNotNone(vector_add_idx)
# Find saxpy_vec label (which is the vector routine in the updated file)
vector_idx = next((i for i, instr in enumerate(parsed) if instr.label == "saxpy_vec"), None)
self.assertIsNotNone(vector_idx)
# Find floating-point instructions
flw_idx = next((i for i, instr in enumerate(parsed) if instr.mnemonic == "flw"), None)