Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support vector type in AArch64 C abi #16645

Merged
merged 2 commits into from
May 30, 2016
Merged

Support vector type in AArch64 C abi #16645

merged 2 commits into from
May 30, 2016

Conversation

yuyichao
Copy link
Contributor

And add more tests about aarch64 specific features (__fp16, __int128, homogeneous short vector aggregate).

@yuyichao yuyichao added the system:arm ARMv7 and AArch64 label May 29, 2016
}
// Since `dt` is pointer free and has no padding and is 8 or 16 in size.
// `ft0` must be concrete, immutable with no padding and we don't need
// to check if it's size is legal since it is automatically done by
Copy link
Contributor

Choose a reason for hiding this comment

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

its size

@yuyichao yuyichao merged commit ceed44d into master May 30, 2016
@yuyichao yuyichao deleted the yyc/arm/ccall branch May 30, 2016 18:14
return _mm_add_ps(a, _mm_mul_ps(b, _mm_sub_ps(c, d)));
}

#endif

#ifdef _CPU_AARCH64_
Copy link
Member

Choose a reason for hiding this comment

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

Why are these tests aarch64 specific?

Copy link
Contributor Author

@yuyichao yuyichao May 30, 2016

Choose a reason for hiding this comment

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

__int128, __fp16 and the vector types used below are AArch64 extensions (especially when passed as arguments or return values). I'm pretty sure at least __fp16 is not allowed as return value elsewhere (even when similar type is defined in C).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:arm ARMv7 and AArch64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants