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

Vector Quality Operators #24

Open
bryanjhunt opened this issue Apr 18, 2024 · 0 comments
Open

Vector Quality Operators #24

bryanjhunt opened this issue Apr 18, 2024 · 0 comments

Comments

@bryanjhunt
Copy link

bryanjhunt commented Apr 18, 2024

I have noticed that equality operators are not allowed with vectors in TPC kernel code. Here is what the documentation says "Quality operators are equal (==), not equal to(!=) operate only on scalar types and result in an integer type."

So I am not allowed to do this...

bool64 eq = v_i32_cmp_eq_b(y, e);
bool64 ex = 1;
if (eq != ex)  // not allowed, how to do something like this?
{
   // do something different...
}

I am also not allowed to access a vector type, IE: eq[i] != ex[i]

Is there any way to perform this type of operation?

Thanks,
Bryan

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

1 participant