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

ICE: intrinsic with vector arguments #2962

Closed
JohanEngelen opened this issue Jan 8, 2019 · 0 comments
Closed

ICE: intrinsic with vector arguments #2962

JohanEngelen opened this issue Jan 8, 2019 · 0 comments

Comments

@JohanEngelen
Copy link
Member

JohanEngelen commented Jan 8, 2019

Testcase that segfaults:

import core.simd;

pragma(LDC_intrinsic, "llvm.fshl.i#")
    T llvm_fshl(T)(T a, T b, T shift)
        if (__traits(isIntegral, T));

int4 rotateLeftIntrinsic(int4 x, int4 bits) {
    return llvm_fshl(x, x, bits);
}

https://d.godbolt.org/z/XUvSX9

Apparently vector types pass the isIntegral test. At the least, we shouldn't crash on this.

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