Skip to content

fix: sign extend in signed cast#8264

Merged
TomAFrench merged 25 commits intomasterfrom
gd/issue_8212
May 12, 2025
Merged

fix: sign extend in signed cast#8264
TomAFrench merged 25 commits intomasterfrom
gd/issue_8212

Conversation

@guipublic
Copy link
Contributor

Description

Problem*

Resolves #8212

Summary*

Perform sign extension when casting between signed types.

Additional Context

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@guipublic guipublic requested a review from a team April 29, 2025 09:42
Copy link
Member

@TomAFrench TomAFrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we should probably add some more comprehensive testing of the behaviours of different casts. It should be possible to proptest various types of casting to ensure that it behaves as we expect.

@guipublic guipublic requested a review from a team May 2, 2025 17:12
@TomAFrench TomAFrench changed the title fix: sign extent in signed cast fix: sign extend in signed cast May 6, 2025
@guipublic guipublic requested a review from TomAFrench May 12, 2025 15:41
@TomAFrench TomAFrench enabled auto-merge May 12, 2025 16:58
@TomAFrench TomAFrench added this pull request to the merge queue May 12, 2025
Merged via the queue into master with commit 29f93d5 May 12, 2025
116 checks passed
@TomAFrench TomAFrench deleted the gd/issue_8212 branch May 12, 2025 19:16
github-merge-queue bot pushed a commit to AztecProtocol/aztec-packages that referenced this pull request May 13, 2025
Automated pull of nightly from the
[noir](https://github.com/noir-lang/noir) programming language, a
dependency of Aztec.
BEGIN_COMMIT_OVERRIDE
fix: sign extend in signed cast
(noir-lang/noir#8264)
chore(fuzz): Do not use zero length types in the main input output
(noir-lang/noir#8465)
chore: fix visibility issues in test suite
(noir-lang/noir#8454)
chore: blackbox functions for ssa intepreter
(noir-lang/noir#8375)
feat: improve bitshift codegen
(noir-lang/noir#8442)
fix(ssa): Mark mutually recursive simple functions
(noir-lang/noir#8447)
fix: Fix nested trait dispatch with associated types
(noir-lang/noir#8440)
chore: carry visibilities in monomorphized AST
(noir-lang/noir#8439)
chore(tests): Add regression for now passing test
(noir-lang/noir#8441)
chore: use human-readable bytecode in snapshots
(noir-lang/noir#8164)
chore: bump external pinned commits
(noir-lang/noir#8445)
END_COMMIT_OVERRIDE

---------

Co-authored-by: AztecBot <tech@aztecprotocol.com>
Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upcasting negative signed types does not preserve value

3 participants