//
if (structSize <= sizeof(double))
{
- // We set the "primitive" useType based upon the structSize
- // and also examine the clsHnd to see if it is an HFA of count one
- useType = getPrimitiveTypeForStruct(structSize, clsHnd);
+#if defined LEGACY_BACKEND
+ if (!IsHfa(clsHnd))
+#endif
+ {
+ // We set the "primitive" useType based upon the structSize
+ // and also examine the clsHnd to see if it is an HFA of count one
+ useType = getPrimitiveTypeForStruct(structSize, clsHnd);
+ }
}
#endif // FEATURE_UNIX_AMD64_STRUCT_PASSING
// Structs that are HFA's are returned in multiple registers
if (IsHfa(clsHnd))
{
+#if !defined(LEGACY_BACKEND)
// HFA's of count one should have been handled by getPrimitiveTypeForStruct
assert(GetHfaCount(clsHnd) >= 2);
+#endif // !defined(LEGACY_BACKEND)
// setup wbPassType and useType indicate that this is returned by value as an HFA
// using multiple registers
WorkingDir=JIT\Directed\StructABI\StructABI
Expected=0
MaxAllowedDurationSeconds=600
-Categories=EXPECTED_FAIL;8093
+Categories=EXPECTED_PASS
HostStyle=0
[Ackermann.cmd_1125]