Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix for HFA args on ARM32 #5386

Merged
merged 2 commits into from
Jun 2, 2016
Merged

Fix for HFA args on ARM32 #5386

merged 2 commits into from
Jun 2, 2016

Conversation

briansull
Copy link

Test fix for issue #5326

@briansull
Copy link
Author

@dotnet-bot test Windows_NT arm64 Checked

@briansull
Copy link
Author

@parjong @myungjoo PTAL
@kyulee1 @CarolEidt PTAL

@@ -4019,6 +4019,9 @@ void CodeGen::genFnPrologCalleeRegArgs(regNumber xtraReg,
}
else
{
// Currently the only non-HFA multireg struct is on ARM64
// and is two registers in size (i.e. two slots)
assert(varDsc->lvSize() == (2 * TARGET_POINTER_SIZE));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is not correct. We also have non-Hfa multireg structs on amd64/ux, and we have longs on 32-bit architectures. As it happens, they are always two registers. But the comment is misleading.

Copy link
Author

@briansull briansull Jun 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are correct I will update this comment to:

// Currently all non-HFA multireg structs are two registers in size (i.e. two slots)

I also note that UNIX_ABI is handled immediately before this and this section is part of the else clause
(see lines 3911 to 1994)

@briansull
Copy link
Author

@dotnet-bot test Windows_NT arm64 Checked

@briansull
Copy link
Author

@parjong @myungjoo PTAL
@kyulee1 @CarolEidt PTAL

I updated this with the additional fix for ARM32 in lvHfaSlots

@CarolEidt
Copy link

LGTM

@parjong
Copy link

parjong commented Jun 2, 2016

LGTM

When I checked, all the tests under JIT/jit64/hfa/main/testE are passed with this change.

@briansull briansull changed the title Proposed fix for HFA args on ARM32 Fix for HFA args on ARM32 Jun 2, 2016
@myungjoo
Copy link

myungjoo commented Jun 2, 2016

LTGM. Thanks!

@briansull briansull merged commit 98568fb into dotnet:master Jun 2, 2016
@briansull briansull deleted the arm32-hfa-fix branch June 2, 2016 02:49
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants