Skip to content

native: negative integer literals#23755

Merged
spytheman merged 7 commits into
vlang:masterfrom
Eliyaan:fix-big-integer-literals
Feb 18, 2025
Merged

native: negative integer literals#23755
spytheman merged 7 commits into
vlang:masterfrom
Eliyaan:fix-big-integer-literals

Conversation

@Eliyaan

@Eliyaan Eliyaan commented Feb 18, 2025

Copy link
Copy Markdown
Member

Use 64 bits instruction for all the mov64 registers and add the same function for unsigned ints.
Support negative integer literals.
Throw an native error when printing unsigned integers as it is not supported.
Add tests for negative integer literals.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22170

@spytheman spytheman force-pushed the fix-big-integer-literals branch from 2a50c40 to 74664b5 Compare February 18, 2025 14:10
Comment thread vlib/v/gen/native/amd64.v Outdated
Comment thread vlib/v/gen/native/amd64.v Outdated
Comment thread vlib/v/gen/native/tests/for.vv

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent work.

@spytheman spytheman merged commit 1274f46 into vlang:master Feb 18, 2025
@Eliyaan Eliyaan deleted the fix-big-integer-literals branch February 18, 2025 16:46
@medvednikov

Copy link
Copy Markdown
Member

Wonderful!

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.

3 participants