You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Arm64: ArgLocDesc might need to describe if FP registers contain double or float HFA values #5821
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.
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.
Activity
rahku commentedon May 20, 2016
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.
rahku commentedon May 20, 2016
FYI @jkotas