-
-
Notifications
You must be signed in to change notification settings - Fork 61
int48_t multiplication and division not working #440
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
Comments
@jacobly0 Did you add support for |
I believe it's been in there almost since the start? Anyway I'm 90% sure it's related to this issue: jacobly0/llvm-project#12 |
I tried compiling with the fix/12 branch of ez80-clang. It doesn't compile with LTO on and clang hangs with all optimization off. |
I changed some things in ez80-clang (fix12 branch) and code is now compiling but produces incorrect output (for reasons that will be apparent later). The tweaks I made are probably incredibly naïve as this is my first time working on llvm stuff but here's what I did: llvm/lib/Target/Z80/GISel: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:
Replaced line 548 to: llvm/include/llvm/IR/RuntimeLibcalls.def:
Compiling the reproduction gives the following output:
The incorrect output for Test3 and Test4 makes sense as I provided the |
|
This is now done:
|
nvm I'm dumb it's working now |
I'm getting llvm fatal errors when multiplying and dividing int48_t's in functions. This is on CEdev version 11.1.
Reproduction:
The text was updated successfully, but these errors were encountered: