Commit graph

1491 commits

Author SHA1 Message Date
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
github-actions[bot]
1e5bf9e166
chore: release 2024-09-25 14:37:03 +00:00
Trevor Gross
d88b175626
Merge pull request #690 from arttet/chore/cc
Bump cc dependency
2024-09-25 10:36:37 -04:00
Artyom Tetyukhin
70d74bb7a4
Bump cc dependency 2024-09-25 18:21:36 +04:00
Trevor Gross
cc3f6697e9
Merge pull request #688 from rust-lang/release-plz-2024-09-24T16-40-42Z
chore: release v0.1.127
2024-09-24 18:49:20 +02:00
github-actions[bot]
d6d29197e4
chore: release 2024-09-24 16:40:44 +00:00
Trevor Gross
608fd00051
Merge pull request #622 from tgross35/f128-div
Add `__divtf3`
2024-09-24 18:40:16 +02:00
Trevor Gross
4842bd6ab1 Add benchmarks for f128 division 2024-09-24 18:32:58 +02:00
Trevor Gross
764a177497 Add f128 division
Use the new generic division algorithm to expose `__divtf3` and
`__divkf3`.
2024-09-24 18:32:58 +02:00
Trevor Gross
4f8afbabdc Make float division generic
Float division currently has a separate `div32` and `div64` for `f32`
and `f64`, respectively. Combine these to make use of generics. This
will make it easier to support `f128` division, and reduces a lot of
redundant code.

This includes a simplification of division tests.
2024-09-24 18:32:56 +02:00
Trevor Gross
23af8ca763 Update bounds and docs for the Float trait
Add some bounds to integer types that allow our function trait bounds to
be slightly less verbose. Also clarify documentation and remove a
redundant operation.
2024-09-24 18:21:57 +02:00
Trevor Gross
44840a12bc Add Shr to u256
Float division requires some shift operations on big integers; implement
right shift here.
2024-09-24 18:21:57 +02:00