-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 tests for intrinsics. #71669
Comments
If someone wants to work on this feel free to ask here or on zulip. See rust/src/test/codegen/intrinsics/unchecked_math.rs Lines 1 to 11 in 5db778a
|
I'd like to take a stab at this (if no one else is working on this issue yet). |
Doesn't seem like someone else is already looking at this. |
rust-lang#71669: add ui, codegen tests for volatile + nearby int intrinsics Added some tests for intrinsics. See rust-lang#71669.
rust-lang#71669: add ui, codegen tests for volatile + nearby int intrinsics Added some tests for intrinsics. See rust-lang#71669.
rust-lang#71669: add ui, codegen tests for volatile + nearby int intrinsics Added some tests for intrinsics. See rust-lang#71669.
rust-lang#71669: add ui, codegen tests for volatile + nearby int intrinsics Added some tests for intrinsics. See rust-lang#71669.
rust-lang#71669: add ui, codegen tests for volatile + nearby int intrinsics Added some tests for intrinsics. See rust-lang#71669.
rust-lang#71669: add ui, codegen tests for volatile + nearby int intrinsics Added some tests for intrinsics. See rust-lang#71669.
…arth Rollup of 8 pull requests Successful merges: - rust-lang#73354 (Update RELEASES.md for 1.45.0) - rust-lang#73852 (rustdoc: insert newlines between attributes) - rust-lang#73867 (Document the union keyword) - rust-lang#74046 (Fix caching issue when building tools.) - rust-lang#74123 (clean up E0718 explanation) - rust-lang#74147 (rustdoc: Allow linking from private items to private types) - rust-lang#74285 (rust-lang#71669: add ui, codegen tests for volatile + nearby int intrinsics) - rust-lang#74286 (Added detailed error code explanation for issue E0688 in Rust compiler.) Failed merges: r? @ghost
#74285 has been merged, so this issue could be closed methinks |
We are still missing codegen tests for many intrinsics, but I am not sure how useful this issue is to track that, so I will just go ahead and close this. @good-praxis in case you were interested in working on this issue, that might be something you can look into |
There are a few intrinsics which are not tested.
We also don't test the emitted IR for most intrinsics, e.g.
ctlz_nonzero
could usectlz
without being noticed.pref_align_of
: never usedvolatile_copy_nonoverlapping_memory
: used in a test forwrite_volatile
causes ICE with zero-sized types. #39827 without checking its output or IRvolatile_copy_memory
: ^volatile_set_memory
: ^^unaligned_volatile_load
: both IR and use with unaligned addr never checkedunaligned_volatile_store
: ^nearbyintf32
: never usednearbyintf64
: ^The text was updated successfully, but these errors were encountered: