Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Should packed loads have sign-extending variants? #48

@Horcrux7

Description

@Horcrux7

I have some questions to understand the packed types. Are the follow points right?

  • This value types can only occur on arrays and structs.
  • i8 and i16 can NOT occur on function parameters, function locals or return parameters
  • i8 and i16 have a negative type value like i32. For example -0x05 and -0x06. They must not be declared in the type section.
  • Are the values signed or unsigned if I access struct.get/array.get? How will it extends to a local of i32?
  • Are there traps on struct.set/array.set if the value is to large? Or will the high part cut?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions