Skip to content

Fix xls codegen for extension ops#4437

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_934986596
Draft

Fix xls codegen for extension ops#4437
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_934986596

Conversation

@copybara-service

Copy link
Copy Markdown

Fix xls codegen for extension ops

Added checks in Op::kZeroExt and Op::kSignExt handling. If the input and output
widths are the same (identity extension), the generator now returns the input
expression directly. This avoids generating invalid 0'h0 literals (for
zero-extension) or 0-replication (for sign-extension).

Added checks in Op::kZeroExt and Op::kSignExt handling. If the input and output
widths are the same (identity extension), the generator now returns the input
expression directly. This avoids generating invalid 0'h0 literals (for
zero-extension) or 0-replication (for sign-extension).

PiperOrigin-RevId: 934986596
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.

1 participant