-
Notifications
You must be signed in to change notification settings - Fork 22
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
[GSOC] integrated support for Zvbc and Zvkg instructions #44
Conversation
generator/insn_util.go
Outdated
@@ -87,6 +87,10 @@ func (v VLEN) Valid() bool { | |||
return 64 <= v && v <= 4096 && v&(v-1) == 0 | |||
} | |||
|
|||
func (v VLEN) Zvkg_validVLEN() bool{ | |||
return v == 128 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure about this? The spec says "All of these instructions work on 128-bit element groups comprised of four 32-bit elements." .. which I don't think this means these instructions are only valid when vlen is 128.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any VLEN * LMUL >=128 should be okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I misunderstood, you're right Element Group width should be 128 not the vlen
[GSOC] removed wrong valid vlen constraint for Zvkg [GSOC] fixed
generator/insn_util.go
Outdated
@@ -83,6 +83,10 @@ func (l LMUL) String() string { | |||
|
|||
type VLEN int | |||
|
|||
func (v VLEN) Zvkg_validVLEN() bool{ | |||
return 128 <= v && v <= 4096 && v&(v-1) == 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no limit on the VLEN, as long as VLEN * LMUL >= 128, it's okay.
Thank you, it looks good now! |
No description provided.