about summary refs log tree commit diff
path: root/library/compiler-builtins/builtins-test/src
AgeCommit message (Collapse)AuthorLines
2025-07-24Use `x86_no_sse` configuration in more placesTrevor Gross-3/+1
Emit `x86_no_sse` in the compiler-builtins (and builtins-test) build script, and use it to simplify `all(target_arch = "x86", not(target_fefature = "sse))` configuration.
2025-07-24Enable skipped `f32` and `f64` multiplication testsTrevor Gross-4/+0
The fix has since made it to nightly, so the skips here can be removed.
2025-07-24Enable tests that were skipped on aarch64Trevor Gross-9/+0
The LLVM issue was resolved a while ago, these should no longer be a problem.
2025-07-24Enable tests that were skipped on PowerPCTrevor Gross-11/+0
Most of these were skipped because of a bug with the platform implementation, or some kind of crash unwinding. Since the upgrade to Ubuntu 25.04, these all seem to be resolved with the exception of a bug in the host `__floatundisf` [1]. [1] https://github.com/rust-lang/compiler-builtins/pull/384#issuecomment-740413334
2025-05-29cleanup: Reuse `MinInt` and `Int` from `libm` in `compiler-builtins`Trevor Gross-5/+73
Since the two crates are now in the same repo, it is easier to share code. Begin some deduplication with the integer traits.
2025-05-28Update `CmpResult` to use a pointer-sized return typeTrevor Gross-2/+2
As seen at [1], LLVM uses `long long` on LLP64 (to get a 64-bit integer matching pointer size) and `long` on everything else, with exceptions for AArch64 and AVR. Our current logic always uses an `i32`. This happens to work because LLVM uses 32-bit instructions to check the output on x86-64, but the GCC checks the full 64-bit register so garbage in the upper half leads to incorrect results. Update our return type to be `isize`, with exceptions for AArch64 and AVR. Fixes: https://github.com/rust-lang/compiler-builtins/issues/919 [1]: https://github.com/llvm/llvm-project/blob/0cf3c437c18ed27d9663d87804a9a15ff6874af2/compiler-rt/lib/builtins/fp_compare_impl.inc#L11-L27
2025-04-19Run `cargo fmt` on all projectsTrevor Gross-2/+1
Apply the same formatting rules to both `libm` and `compiler-builtins`.
2025-04-18Rename `testcrate` to `builtins-test`Trevor Gross-0/+704
The repo will soon have `libm` as a top-level crate, so make it clear that this is only the test crate for `compiler-builtins`.