-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
Missing intrinsic lrint #4754
Comments
|
It works fine for me: pragma(LDC_intrinsic, "llvm.lrint.i64.f#")
long llvm_lrint(T)(T val)
if (__traits(isFloating, T));
pragma(LDC_intrinsic, "llvm.lrint.i32.f#")
int llvm_lrint32(T)(T val)
if (__traits(isFloating, T));
extern(C) auto foo (float f) {
return llvm_lrint(f);
}
extern(C) auto foo32 (double f) {
return llvm_lrint32(f);
}
It also works with target features (notice
Or without:
|
While at it, these are missing intrinsics:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Someone on Discord needs
lrint
to generateCVTSS2SI
.I was able to find that this is a missing intrinsic. It is not hooked up to core.stdc.math or std.math.
The text was updated successfully, but these errors were encountered: