metalibm / asmde

ASM development environnement, small tool to ease assembly code development
MIT License
4 stars 2 forks source link

asm_stats crash when parsing RV32F/D instructions with "." in opcode #7

Open nibrunieAtSi5 opened 2 years ago

nibrunieAtSi5 commented 2 years ago

reported by Hugues $ python3 -m asmde.asm_stats --arch rv32 --input examples/riscv/test_rv32_f.S parsing input program examples/riscv/test_rv32_f.S unable to parse [Lexem(fadd), OperatorLexem(.), Lexem(s), Lexem(f2), Lexem(f2), Lexem(f0)] @ line 5, head=Lexem(fadd)

nibrunie commented 2 years ago

This should be solved for assembly file by https://github.com/metalibm/asmde/pull/9 adding support for "--mode asm". However it will not solve the issue for objdump file with F/D extension instructions.