Skip to content

feat: implement SUB, LT, GT, SLT, SGT, EQ, ISZERO v2 operations with long[] stack#10171

Closed
parthdagia05 wants to merge 1 commit intobesu-eth:mainfrom
parthdagia05:feat/evm-v2-sub-operation
Closed

feat: implement SUB, LT, GT, SLT, SGT, EQ, ISZERO v2 operations with long[] stack#10171
parthdagia05 wants to merge 1 commit intobesu-eth:mainfrom
parthdagia05:feat/evm-v2-sub-operation

Conversation

@parthdagia05
Copy link
Copy Markdown

PR description

Implements seven EVM v2 operations using the long[] stack representation introduced in #10105:

  • SubOperationV2 (0x03) - 256-bit subtraction with borrow propagation
  • LtOperationV2 (0x10) - unsigned less than
  • GtOperationV2 (0x11) - unsigned greater than
  • SLtOperationV2 (0x12) - signed less than (two's complement)
  • SGtOperationV2 (0x13) - signed greater than (two's complement)
  • EqOperationV2 (0x14) - equality check
  • IsZeroOperationV2 (0x15) - zero check (unary, in-place)

All operations perform directly on the long[] array with zero object allocation.

Continues the v2 operation porting effort alongside #10154 and #10168.

Fixed Issue(s)

Partial fix for #10131

…long[] stack

Signed-off-by: Parth Dagia <parth.24bcs10414@sst.scaler.com>
@parthdagia05
Copy link
Copy Markdown
Author

@siladu could you review this PR

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.

2 participants