Skip to content

x/tools/go/analysis: asmdecl false positives on AVX2 instructions #47625

Open
@Yawning

Description

@Yawning

go vet raises invalid VPBROADCASTD of mask+24(FP); uint32 is 4-byte value for VPBROADCASTD mask+24(FP), Y0.

Skimming the asmdecl source, this is because argument size is determined by the final character of the opcode (plus some special cases), but when AVX2 instructions were added, the decision was made to use the actual (ie: Intel's) name of each instruction. I suspect there are other opcodes that also trigger false positives in this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnalysisIssues related to static analysis (vet, x/tools/go/analysis)NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions