solana-labs / rbpf

Rust virtual machine and JIT compiler for eBPF programs
Apache License 2.0
277 stars 169 forks source link

Accept blank spaces between register and offset #572

Closed LucasSte closed 5 months ago

LucasSte commented 5 months ago

Problem

When we dump assembly from LLVM (either llvm-objdump or llc), we use a space between the register and the offset in memory operations (e.g. [r10 - 8]), but the assembly parser does not support it.

Solution

Fix the parser to accept the spaces.