mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-05 10:40:06 +01:00
Add initial support for RISC-V architecture and update relevant files
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user