Commit graph

1502 commits

Author SHA1 Message Date
Trevor Gross
394fb9f2bc Add an abs function to the Float trait
There is no in-crate use for this yet, but we will make use of it in
`libm`.
2024-10-25 14:30:03 -05:00
Trevor Gross
2f7fafd182 Rename Float::repr and Float::from_repr
`to_bits` and `from_bits` are builtin methods on float types. Rename
`repr` to `to_bits` and `from_repr` to `from_bits` so this is consistent
with usage that doesn't go through the trait.
2024-10-25 14:18:53 -05:00
Trevor Gross
e4948d4295
Merge pull request #716 from rust-lang/release-plz-2024-10-23T09-57-02Z
chore: release v0.1.135
2024-10-23 05:06:04 -05:00
github-actions[bot]
ce89a70ae4
chore: release v0.1.135 2024-10-23 09:57:03 +00:00
Trevor Gross
8c26f3dd26
Merge pull request #715 from YtvwlD/math-i686-uefi
Re-enable math module on i686-unknown-uefi
2024-10-23 04:56:30 -05:00
Niklas Sombert
68b820187b Re-enable math module on i686-unknown-uefi
In 9ba77d1583e6de5ab9cf7c9b82827ba8fcb9062f, this was disabled for x86
without sse2. It should be fine to re-enable it for UEFI, as explained at
<https://github.com/rust-lang/rust/issues/128533#issuecomment-2408699671>.
2024-10-23 11:39:33 +02:00
Trevor Gross
8c66edb244
Merge pull request #714 from rust-lang/release-plz-2024-10-17T23-55-24Z
chore: release v0.1.134
2024-10-17 19:03:22 -05:00
github-actions[bot]
3e922da156
chore: release v0.1.134 2024-10-17 23:55:25 +00:00
Trevor Gross
26ca96a2f9
Merge pull request #713 from saethlin/permissive-memcpy
Use wrapping pointer arithmetic in mem/impls.rs
2024-10-17 18:55:02 -05:00
Ben Kimock
2a738c50ab Use wrapping pointer arithmetic in mem/impls.rs
Add a comment (and fix a typo)
2024-10-16 22:37:42 -04:00
Trevor Gross
fff4c16873
Merge pull request #709 from rust-lang/release-plz-2024-10-06T02-07-59Z
chore: release v0.1.133
2024-10-05 22:21:06 -04:00
github-actions[bot]
fedfc6aaab
chore: release 2024-10-06 02:08:00 +00:00
Trevor Gross
a2d66e9869
Merge pull request #708 from tgross35/raskyld/master
fix(int): avoid infinite recursion on left shift #707
2024-10-05 22:07:36 -04:00
Trevor Gross
996799a896 Add a note about avoiding default implemenations in some places
Link: https://github.com/rust-lang/compiler-builtins/pull/707
2024-10-05 20:55:47 -05:00
Enzo "raskyld" Nocera
8153729f91 fix(int): avoid infinite recursion on left shift
Please, see this discussion for the full
context: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/.5Bwasm32.5D.20Infinite.20recursion.20.60compiler-builtins.60.20.60__multi3.60

Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu>

We determined that some recursion problems on SPARC and WASM were due to
infinite recusion. This was introduced at 9c6fcb56e8 ("Split Int into
Int and MinInt") when moving the implementation of `widen_hi` from
something on each `impl` block to a default on the trait. The reasoning
is not fully understood, but undoing this portion of the change seems to
resolve the issue.

[ add the above context - Trevor ]

Signed-off-by: Trevor Gross <tmgross@umich.edu>
2024-10-05 20:49:45 -05:00
Trevor Gross
d150d472fe
Merge pull request #705 from rust-lang/release-plz-2024-10-03T15-57-49Z
chore: release v0.1.132
2024-10-04 13:24:32 -04:00
github-actions[bot]
3edc27ef56
chore: release 2024-10-04 17:17:03 +00:00
Trevor Gross
ef4c4f2eb7
Merge pull request #706 from XrXr/limit-fix
Allow implicit function decl on A64
2024-10-04 13:16:32 -04:00
Alan Wu
3f70601e3c Allow implicit function decl on A64
Testing in <https://github.com/rust-lang/rust/pull/131221>, we found
that <https://github.com/rust-lang/compiler-builtins/pull/627> is
unusable with the current LLVM version.
2024-10-04 12:33:16 -04:00
Trevor Gross
f4bde3fdc9
Merge pull request #703 from tgross35/upgrade-llvm-version
Upgrade CI LLVM version to 19.1
2024-10-03 11:57:25 -04:00
Trevor Gross
76580a96a7 Upgrade CI LLVM version to 19.1
19.1 is the latest stable release from 2024-09-17. This will match what
is currently being used in rust-lang/rust.
2024-10-03 11:49:45 -04:00
Trevor Gross
0f80e4c91c
Merge pull request #700 from rust-lang/release-plz-2024-09-28T22-28-58Z
chore: release v0.1.131
2024-10-03 11:44:18 -04:00
github-actions[bot]
859e22b4ae
chore: release 2024-10-03 15:37:33 +00:00
Trevor Gross
e34e130081
Merge pull request #627 from XrXr/werror-implicit-function-declaration
Build with `-Werror=implicit-function-declaration`
2024-10-03 11:37:05 -04:00
Alan Wu
edc6f80dcc Build with -Werror=implicit-function-declaration
To prevent fail-fast in situations like
https://github.com/rust-lang/rust/issues/125619, where an upstream
source compiles but creates a link error way downstream.
2024-10-03 11:24:49 -04:00
Amanieu d'Antras
f5010ea4f9
Merge pull request #704 from tgross35/riscv-ci 2024-10-03 10:42:53 -04:00
Trevor Gross
0c97b10dc0 Add riscv64gc to CI
There is a proposal to promote `riscv64gc-unknown-linux-gnu` to tier 1
[1]. We do not currently test RISC-V in CI; add it here.

[1]: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Imminent.20RFC.20PR.3A.20riscv64gc-unknown-linux-gnu.20to.20Tier-1
2024-10-02 16:35:28 -04:00
Trevor Gross
601b0d0062
Merge pull request #701 from tgross35/shellcheck-fixes
Fix some warnings from shellcheck
2024-09-28 21:31:47 -04:00
Trevor Gross
85cd4c0660 Fix some warnings from shellcheck 2024-09-28 21:24:44 -04:00
Trevor Gross
6f58073dbf
Merge pull request #699 from tgross35/resolve-macro-fixme
Revert "Temporarily `use define_rust_probestack;`"
2024-09-28 18:28:35 -04:00
Trevor Gross
c6b434e5a3 Revert "Temporarily use define_rust_probestack;"
<https://github.com/rust-lang/rust/issues/126984> has been resolved.
Remove the workaround that was introduced to suppress it.

This reverts commit 254edbcad4cfd6a8af32e3297c1037d7984c3c49.
2024-09-28 18:22:22 -04:00
Trevor Gross
d08a0ce015
Merge pull request #698 from tgross35/skip-asm-checks-fixme
Ungate tests that were skipped due to a broken implementation
2024-09-28 18:21:52 -04:00
Trevor Gross
e226c0dce5 Ungate tests that were skipped due to a broken implementation
The upstream issue [1] has been resolved so we can enable these tests
again.

[1]: https://github.com/rust-lang/compiler-builtins/issues/616
2024-09-28 18:13:34 -04:00
Trevor Gross
ac07aeb2db
Merge pull request #697 from tgross35/f16-asm
Resolve FIXMEs related to `f16` assembly
2024-09-28 18:04:31 -04:00
Trevor Gross
4ae984cbce Resolve FIXMEs related to f16 assembly
We have a couple FIXMEs from before aarch64 `f16` assembly support
existed. We have this available now, so resolve the notes here.
2024-09-28 17:57:06 -04:00
Trevor Gross
9b9cf1b97b
Merge pull request #696 from rust-lang/release-plz-2024-09-28T15-03-56Z
chore: release v0.1.130
2024-09-28 11:19:54 -04:00
github-actions[bot]
8a13ab7dfc
chore: release 2024-09-28 15:13:17 +00:00
Trevor Gross
857c293cc1
Merge pull request #614 from tgross35/f16-f128-powi
Add `__powitf2` symbol for `f128` integer exponentiation
2024-09-28 11:12:50 -04:00
Trevor Gross
b2db9e8e89 Add a benchmark for __powitf2 2024-09-28 11:06:33 -04:00
Trevor Gross
606d971958 Add support for f128 integer exponentiation
Create the symbol `__powitf2`.
2024-09-28 11:06:33 -04:00
Trevor Gross
2a32f80cdc Move float_pow tests to their own file 2024-09-28 11:06:33 -04:00
Trevor Gross
99a9bbb1bb
Merge pull request #694 from tgross35/feature-cleanup
Remove unneeded features
2024-09-28 11:03:34 -04:00
Trevor Gross
18b42ebb78 Remove unneeded features
A few of the features that we enable have been stabilized, others may
have been needed at some point but are no longer required. Clean this
up.
2024-09-28 10:56:30 -04:00
Trevor Gross
df86dc2ad9
Merge pull request #693 from rust-lang/release-plz-2024-09-26T14-27-12Z
chore: release v0.1.129
2024-09-27 07:15:33 -04:00
github-actions[bot]
c48926906a
chore: release 2024-09-27 11:08:02 +00:00
Trevor Gross
5c103f21bf
Merge pull request #695 from rust-lang/revert-690-chore/cc
Revert "Bump cc dependency"
2024-09-27 07:07:36 -04:00
Trevor Gross
1649f72ea6
Revert "Bump cc dependency" 2024-09-27 07:00:19 -04:00
Trevor Gross
3e608c6cc0
Merge pull request #692 from Tazdevil971/master
Fixed `__divtf3` having wrong cfg for f128
2024-09-26 10:26:44 -04:00
Davide Mor
8c31ec9e7d Fixed __divtf3 having wrong cfg for f128 2024-09-26 15:25:48 +02:00
Trevor Gross
b8a2df1e2a
Merge pull request #691 from rust-lang/release-plz-2024-09-25T14-37-02Z
chore: release v0.1.128
2024-09-25 10:49:07 -04:00