Skip to content

FR: Sign-extending load1/load2/load4 #496

@andres-erbsen

Description

@andres-erbsen

Currently load1 after store1 of a signed value does not preserve the signed representation, even for values in -100..100. I see two possible solutions:

  • add load1s/load2s/load4s
  • add sext1/sext2/sext4 and wrap loads in these, compile away

Either way, semantics of sign-extended loads would be defined in terms of normal loads.

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