Skip to content

Arm64: ArgLocDesc might need to describe if FP registers contain double or float HFA values #5821

Closed

Description

@rahku

The argloc information (or something nearby) will need to have extra stuff to deal with ARM64 HFAs. Consider this example:
struct S
{
float a, b;
}
When this struct is stored in memory, it is stored in 8 continuous bytes. When this struct is stored in float register file, it is stored in 4 bytes, followed by 4 bytes gap, followed by another 4 bytes.

We will need to do adjustment for this difference when copying the struct in and out of stackframe. There is nothing like that on existing platforms. On all existing platforms, you can just copy the whole struct as a block between register file and memory.

Activity

  1. self-assigned this
    on May 9, 2016
  2. rahku commented on May 20, 2016

    @rahku
    ContributorAuthor

    For arm64 ArgLocDesc is only used for ShuffleThunk. ShuffleThunk can add another argument (target object) which would require shifting of arguments. However the shift will never apply for args in FP registers. Therefore there isn't a situation where we need to move FP registers to compacted form on stack or vice versa. So there isn't any work required here.

  3. rahku commented on May 20, 2016

    @rahku
    ContributorAuthor
  4. transferred this issue fromdotnet/coreclron Jan 30, 2020
  5. added this to the Future milestone on Jan 30, 2020
  6. ghost locked as resolved and limited conversation to collaborators on Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions