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

VOPC as a part of VOP3B fails. #13

Closed
sayan1an opened this issue Jul 11, 2013 · 2 comments
Closed

VOPC as a part of VOP3B fails. #13

sayan1an opened this issue Jul 11, 2013 · 2 comments

Comments

@sayan1an
Copy link
Contributor

v_cmp_lt_i32 s[5:6], v0, 48 // 00000028: D1020002 00016100

The above instruction produce invalid output. Please note that the above instruction is in VOP3b format. The instruction can be emulated as follows:

V_MOV_B32 v4, 48
V_CMP_LT_I32 v0, v4 // Using VOPC format
S_MOV_B64 s[5:6], vcc

@balidani
Copy link
Owner

Thanks, I'm working on this right now.

@balidani
Copy link
Owner

As a temporary solution VOPC is now only used with a VOP3b format. With the VOP3b format we have the same (and more) functionality. We might need the non-VOP3 format later for performance reasons.

I think the bigger problem is VOP2 and VOP1, I'll open an issue for those.

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

No branches or pull requests

2 participants