Skip to content

cmd/internal/obj: wrong binary generated for TST instruction by the ARM assembler #19357

Closed
@benshi001

Description

@benshi001

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

the newest go master branch

What operating system and processor architecture are you using (go env)?

GOARCH=arm
GOOS=linux

What did you do?

test the arm assembler

If possible, provide a recipe for reproducing the error.

Wrong 4-byte word assembled

TST $255, R7: have encoding 000050e3, want ff0017e3
TST $4278190080, R9: have encoding 000050e3, want ff0419e3
TST R9<<30, R7: have encoding 000050e3, want 090f17e1
TST R9>>30, R7: have encoding 000050e3, want 290f17e1
TST R9->30, R7: have encoding 000050e3, want 490f17e1
TST R9@>30, R7: have encoding 000050e3, want 690f17e1
TST R9<<R8, R7: have encoding 000050e3, want 190817e1
TST R9>>R8, R7: have encoding 000050e3, want 390817e1
TST R9->R8, R7: have encoding 000050e3, want 590817e1
TST R9@>R8, R7: have encoding 000050e3, want 790817e1

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions