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

icpx fails test memory_scalar with -O3 #332

Open
bernhardmgruber opened this issue May 3, 2022 · 0 comments
Open

icpx fails test memory_scalar with -O3 #332

bernhardmgruber opened this issue May 3, 2022 · 0 comments

Comments

@bernhardmgruber
Copy link
Collaborator

With changes in PR: #292

Testcase

int main() {
    using V = Vc::native_simd<short>;
    Vc::Memory<V, 53> m1, m2;
    m1.setZero();
    m2.setZero();
    m1 += 1;
    return m1 != m2;
}

Actual Results

0

Expected Results

1

Godbolt: https://godbolt.org/z/8heTYahbf

The problem goes away if we use -O2 instead of -O3.

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