Skip to content

x86 C ABI struct return does not work on windows/mac for structs < 8 bytes #5745

Closed

Description

C returns the structs packed into %eax but our code appears to load the fields from %al and %dl for byte fields.

See run-pass/extern-return-TwoU8s and run-pass/extern-return-TwoU16s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationO-macosOperating system: macOSO-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions