Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify go's LUT #332

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Simplify go's LUT #332

wants to merge 1 commit into from

Conversation

Jorropo
Copy link

@Jorropo Jorropo commented Jan 3, 2025

I am working on C support and it started being very awkward to have to add things like funct4 and funct6 when the bits overlap and the some of the fields are used differently or not used at all by different encodings.

By passing the match the go assembler can do a simple bitwise or. This was also changed to emit go fmt-ed code from the start as go fmt now refuse to run due to the internal import.

Here is the matching CL on go's side https://go-review.googlesource.com/c/go/+/637940

I am working on C support and it started being very awkward
to have to add things like funct4 and funct6 when the bits overlap
and the some of the fields are used differently or not used at all
by different encodings.

By passing the match the go assembler can do a simple bitwise or.
This was also changed to emit go fmt-ed code from the start as go fmt
now refuse to run due to the internal import.

Here is the matching CL on go's side https://go-review.googlesource.com/c/go/+/637940
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant