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

ISPC 1.21 "FNeg operator only works with float types" #2628

Closed
petrsm opened this issue Aug 20, 2023 · 1 comment · Fixed by #2637
Closed

ISPC 1.21 "FNeg operator only works with float types" #2628

petrsm opened this issue Aug 20, 2023 · 1 comment · Fixed by #2637
Assignees
Labels

Comments

@petrsm
Copy link

petrsm commented Aug 20, 2023

Compiling this code:

typedef float<2> float2;

float2 TestFunc(float2 x)
{
return -x;
}

results in following error message:

FNeg operator only works with float types!
%13 = fneg [2 x <8 x float>] %12
LLVM ERROR: Broken module found, compilation aborted!
D:\actions-runner\intel\001_work\applications.compilers.ispc.core\applications.compilers.ispc.core\src\main.cpp(404): FATAL ERROR: Unhandled signal sent to process; terminating.

@aneshlya
Copy link
Collaborator

Thanks for reporting this. The regression happened after commit 8de98b4.

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

Successfully merging a pull request may close this issue.

3 participants