-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix soft float support, split musl triples by float ABI, and enable CI #21269
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c1a70ac
std.zig.target: Split `mips(el)-linux-musl` triples into `mips(el)-li…
alexrp 17f54e8
std.zig.target: Split `powerpc-linux-musl` triple into `powerpc-linux…
alexrp af370a6
std.Target: Make Abi.floatAbi() more accurate.
alexrp 92517fb
llvm: Set float ABI based on std.Target.floatAbi().
alexrp 6836799
llvm: Set use-soft-float and noimplicitfloat on functions for soft fl…
alexrp 70c9233
llvm: Limit f16/f128 lowering on arm to fp_armv8 and soft float.
alexrp 77c8f4b
Compilation: Pass hard/soft float flags to Clang as appropriate.
alexrp f945551
Compilation: Work around llvm/llvm-project#105972 by defining the mac…
alexrp 65d36be
std.zig.system: Work around llvm/llvm-project#105978 by disabling vfp2.
alexrp 4fcd3e0
musl: Build with -ffp-contract=off.
alexrp 5285f41
test: Disable `store vector with memset` on soft float arm.
alexrp 26119bd
test: Skip some floating point tests that fail on `arm-linux-(gnu,mus…
alexrp a872b61
test: Add arm, mips, and powerpc soft float targets to module tests.
alexrp 75983c6
test: Switch all `arm-linux-*` triples for module tests from v8a to v7a.
alexrp f164577
compiler_rt: Export __truncdfhf2() for AEABI too.
alexrp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1442,7 +1442,14 @@ test "store vector with memset" { | |
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; | ||
|
||
if (builtin.zig_backend == .stage2_llvm) { | ||
// LLVM 16 ERROR: "Converting bits to bytes lost precision" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that this test is being re-enabled for all targets in #21183. |
||
// https://github.com/ziglang/zig/issues/16177 | ||
switch (builtin.target.cpu.arch) { | ||
.arm, | ||
.armeb, | ||
.thumb, | ||
.thumbeb, | ||
=> if (builtin.target.floatAbi() == .soft) return error.SkipZigTest, | ||
.wasm32, | ||
.mips, | ||
.mipsel, | ||
|
@@ -1451,11 +1458,7 @@ test "store vector with memset" { | |
.riscv64, | ||
.powerpc, | ||
.powerpc64, | ||
=> { | ||
// LLVM 16 ERROR: "Converting bits to bytes lost precision" | ||
// https://github.com/ziglang/zig/issues/16177 | ||
return error.SkipZigTest; | ||
}, | ||
=> return error.SkipZigTest, | ||
else => {}, | ||
} | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What makes sense to me is:
Furthermore, baseline for soft float ABI target triples can default to not using float instructions in the CPU features.
it's unclear to me if this comment is in agreement with this or not.