Skip to content

cargo-show-asm can misidentify functions in the assembly #410

@SludgePhD

Description

@SludgePhD

I have a generic function instantiated with f32 and a Vec1f vector type. Running cargo asm and listing the instantiation for Vec1f shows the same output as the instance for f32, while in reality (and confirmed with --disasm and objdump -S) they contain wildly different code.

I haven't managed to reduce this yet, but the symbols in question look like this (after demangling):

  • benches::bench_zip::<zaru_linalg::vector::Vector<f32, zaru_linalg::dim::Const<1>>>::{closure#0}
  • benches::bench_zip::<f32>::{closure#0}

I am using the v0 symbol mangling instead of the legacy one, maybe the assembly parser doesn't like that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions