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

Miscompilation for sse4-i8x16 #2824

Open
nurmukhametov opened this issue Apr 2, 2024 · 0 comments
Open

Miscompilation for sse4-i8x16 #2824

nurmukhametov opened this issue Apr 2, 2024 · 0 comments
Labels

Comments

@nurmukhametov
Copy link
Collaborator

The following code

void SetByte(int8& dest, int8 src)
{
    uniform uint32 mask = lanemask();
    unmasked
    {
        dest = select(((1 << programIndex) & mask) != 0, src, dest);
    }
}

is compiled for sse4-i8x16 target to

SetByte___REFvytvyt:                    # @SetByte___REFvytvyt
        ret

It looks like miscompilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants