Skip to content

Conversation

spall
Copy link
Collaborator

@spall spall commented Jul 24, 2025

Add test for asuint16 for half, uint16_t and int16_t.
Closes #179

Copy link
Contributor

@bob80905 bob80905 left a comment

Choose a reason for hiding this comment

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

Main could use some indentation

- Name: ExpectedOut1
Format: Int16
Stride: 8
Data: [ 0, 32767, -100, -32768, 10, 20, 30, 6000, -3000, -30000, 50, 60, 0, 32767, -100, -32768 ]
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand why there are negative values, shouldn't asuint interpret the bits as an unsigned integer, and thus eliminate the sign in the final representation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this is a format error; should be UInt16. thanks ill update that

Copy link
Contributor

@kmpeng kmpeng left a comment

Choose a reason for hiding this comment

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

LGTM

@spall spall merged commit c19f620 into llvm:main Aug 12, 2025
9 of 10 checks passed
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.

Add test for asuint16
3 participants