Better float casting tests in coretests#152597
Better float casting tests in coretests#152597eggyal wants to merge 3 commits intorust-lang:mainfrom
coretests#152597Conversation
A direct port of the float casting tests from MIRI.
|
|
This comment has been minimized.
This comment has been minimized.
|
My first exposure to the cranelift codebase was in the float constant PR, so I'm by no means an expert. There was a change in that PR that you might want to cherry pick so it solves the separate f128->int casts issue c4582c8 For this CI failure, in the lib_call on line 220, should that rust/compiler/rustc_codegen_cranelift/src/codegen_f16_f128.rs Lines 207 to 254 in a423f68 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
That linking error should be what the commit (c4582c8) fixes. The symbols starts with It should merge sometime later today, probably easiest to just rebase once it does. |
|
Ah, indeed - I messed up the cherry-pick, apologies. |
Per rust-lang#152597 (comment) Co-authored-by: okaneco <47607823+okaneco@users.noreply.github.com>
|
Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 |
Correct name for intrinsic that converts f128 to u128 Use `to_signed` instead of `from_signed` to ensure proper intrinsic selected for u128/i128
6771c64 to
0e1b15d
Compare
|
The Miri subtree was changed cc @rust-lang/miri |
|
Miri does run coretests but not in its own CI, so I don't think we should remove existing tests. |
fafad4d to
0e1b15d
Compare
A direct port of the float casting tests from MIRI.
Closes #152592
r? tgross35