Skip to content

compiler: drop the cast on the interrupt ID - #6849

Open
davecheney wants to merge 1 commit into
interrupt-negative-idfrom
interrupt-id-uint64
Open

davecheney wants to merge 1 commit into
interrupt-negative-idfrom
interrupt-id-uint64

Conversation

@davecheney

Copy link
Copy Markdown
Contributor

createInterruptGlobal converted id.Int64() to uint64 for llvm.ConstInt, because a negative ID needed sign extension. Since "compiler: require a non-negative interrupt ID", createInterruptGlobal rejects a negative ID before this call. For every ID that passes that check, id.Uint64() returns the same value. Stripped binaries of the echo example are byte-identical before and after this change.

@davecheney
davecheney added this pull request to stack #6850 December 4, 2026 23:07
createInterruptGlobal converted id.Int64() to uint64 for llvm.ConstInt, because a negative ID needed sign extension. Since "compiler: require a non-negative interrupt ID", createInterruptGlobal rejects a negative ID before this call. For every ID that passes that check, id.Uint64() returns the same value. Stripped binaries of the echo example are byte-identical before and after this change.
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