diff options
author | David Tellenbach <david.tellenbach@me.com> | 2020-10-28 20:15:09 +0000 |
---|---|---|
committer | David Tellenbach <david.tellenbach@me.com> | 2020-10-28 20:15:09 +0000 |
commit | e265f7ed8e59c26e15f2c35162c6b8da1c5d594f (patch) | |
tree | 09f9696465ca75ecfdaeccda88358f397616042d /test/packetmath.cpp | |
parent | a725a3233c98185eb3e5db6186aea3a906b8411f (diff) |
Add support for Armv8.2-a __fp16
Armv8.2-a provides a native half-precision floating point (__fp16 aka.
float16_t). This patch introduces
* __fp16 as underlying type of Eigen::half if this type is available
* the packet types Packet4hf and Packet8hf representing float16x4_t and
float16x8_t respectively
* packet-math for the above packets with corresponding scalar type Eigen::half
The packet-math functionality has been implemented by Ashutosh Sharma
<ashutosh.sharma@amperecomputing.com>.
This closes #1940.
Diffstat (limited to 'test/packetmath.cpp')
-rw-r--r-- | test/packetmath.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/packetmath.cpp b/test/packetmath.cpp index c6a1648ba..eabf69c62 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -246,6 +246,7 @@ void packetmath_boolean_mask_ops() { data1[i] = Scalar(i); data1[i + PacketSize] = internal::random<bool>() ? data1[i] : Scalar(0); } + CHECK_CWISE2_IF(true, internal::pcmp_eq, internal::pcmp_eq); //Test (-0) == (0) for signed operations |