Aarch64 / simd builtin question
Steve Ellcey
sellcey@cavium.com
Fri Jun 8 22:16:00 GMT 2018
On Fri, 2018-06-08 at 22:34 +0100, James Greenhalgh wrote:
>
> Are you in an environment where you can use arm_neon.h ? If so, that
> would
> be the best approach:
>
> Â float32x4_t in;
> Â float64x2_t low = vcvt_f64_f32 (vget_low_f64 (in));
> Â float64x2_t high = vcvt_high_f64_f32 (in);
>
> If you can't use arm_neon.h for some reason, you can look there for
> inspiration of how to write your own versions of these intrinsics.
>
> Thanks,
> James
Thanks, that is helpful though I think you meant vget_low_f32 in
the first line instead of vget_low_f64.  With that change I get the
code I want/expect. Â I hadn't seen the __GETLOW macro in the neon
header file.
Steve Ellcey
More information about the Gcc
mailing list