Repository navigation
Conversation
added 2 commits
November 11, 2026 01:27
… the operand's width emit_builtin_numeric_call_term wrote 32-bit text for each whatever the operand (`__builtin_bswap32((uint32_t)…)` for an i64, a zero's count 32 at every width). One helper writes each at the operand's width, as the LLVM backend's intrinsics do. Evidence: test/emit_c/bit_intrinsic_widths.w (the emitted text for the i64 operand is __builtin_bswap64).
c_type mapped every enum with no payloads to int32_t while the LLVM backend uses the declared repr (§13.3): a u8 enum took four bytes in a struct and `enum Big: i64` truncated 5000000000. Evidence: test/emit_c/enum_repr_width.w (emitted field is uint8_t).
ehartford
marked this pull request as ready for review
November 11, 2026 09:44
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #1006 and #990.
Battery: GREEN on the stack top 0855fa8 (
out/battery/battery.log: rc=0 green; uat 12 pass, 1 skip byplatforms:), one battery for stack #3253, run after rebasing onto main b7a01bd.