-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
[CSKY] segmentation fault in __multi3
#68971
Comments
Double float is not support in CSKY target. The segmentation fault is agnostic in such high level view and can't know the exact issue. |
Could you please offer an |
Yeah, I can offer a float_cal-e4847f7eee567be8.txt and I think using
|
I think it's about int128 type. It looks like a int128 num is split into 4 int32 nums in backend and to load/store with 4 times load/store in sequence. So there is no issue as I go through the .ll roughly and the seg fault may not be related to int128. |
Thanks , It's what I confused. It seems that 0x23456789 is not an address, it's a part of my u128 value(which is 0x12345678876543212345678998765432)
Should my next step be to find out why 0x23456789 give to |
Right. Normally r0,r1 consist of first argument of __multi3 because the first argument is i64 type. |
double-float
feature__multi3
@EugeneZelenko Could you help to chage the label |
@Dirreke: To which one(s)? |
Thanks! I guess it might be |
Thanks! After some tests, I think #68971 is different from #21245 . I can not simply disable When program call the I have no idea about how to fix it. Could you give me some advice? |
there's nothing to do. It's error in codegen of rust. thank all of you |
I have written a toolchain for
csky
inRust
at rust-lang/rust#113658 before.However, when I run a simple Rust program with u128, like this
I can compile the program successfully. However, I got a segmentation fault when I run it. It seems that
-mdouble-float
is not enabled. So can anyone will help to add this feature? or guide me add it?(I'm not sure if I'm right about the above Issue, if anyone have any idea, please fell free to tell me. Thanks!)
@benshi001 @zixuan-wu I noticed that you two provide many commits to
csky
, so I want to know if you can give me some advice? Thanks.Besides, contact to me If I could add your WeChat. My email is [email protected] . Thanks!
The text was updated successfully, but these errors were encountered: