Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GAZPREA] [RFC] 2024/25 - Make Characters Unsigned 8-bit Integers #44

Open
JustinMeimar opened this issue Dec 21, 2024 · 0 comments
Open
Labels
draft This proposal is a WIP gazprea

Comments

@JustinMeimar
Copy link
Collaborator

JustinMeimar commented Dec 21, 2024

Characters are defined in the spec to be unsigned 8 bit integers.

7.2.
A character is a signed 8-bit value. A character can be represented by an i8 in MLIR.

However, casting seems to simply an unsigned integer is produced.

9.2.
Casting a integer to character produces unsigned integer value mod 256

Similarly, character reads from std_input also treat the bytes as unsigned.

@JustinMeimar JustinMeimar added gazprea draft This proposal is a WIP labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft This proposal is a WIP gazprea
Projects
None yet
Development

No branches or pull requests

1 participant