FIAS . Impressum . Privacy

Potential bug in double_m operator==

Georgios Bitzes [please enable javascript to see the address]
Thu Jun 12 14:37:55 CEST 2014


Haha, I had not noticed that.. You're right, (b == a) returns a different
result than (a == b)!
Latest commit (b7f0e8ce59ff866894a8cdb33ce7d53cbfc737bf) fixes the issue
for AVX and AVX2, but not SSE4.. It's strange that you cannot reproduce -
I'm configuring Vc with:
cmake -DCMAKE_INSTALL_PREFIX=<..> -DBUILD_TESTING=OFF <..>

Compiler version is "Ubuntu/Linaro 4.7.3-2ubuntu4" on a Linux Mint 14 with
a E3-1280 v3. Also tested on icpc 14.0.2.

By the way, (b == a) produces the correct result for SSE4, too ..
Georgios



On Thu, Jun 12, 2014 at 2:17 PM, Matthias Kretz <
[please enable javascript to see the address]> wrote:

> Hi,
>
> On Thursday 12 June 2014 14:01:01 Matthias Kretz wrote:
> > Anyway I'll use movemask(left) == movemask(right) to implement operator==
> > for AVX::Mask. This'll fix the problem.
>
> The fix is committed. (http://code.compeng.uni-frankfurt.de/issues/684)
> Please
> let me know if you continue to have problems.
>
> Cheers,
>  Matthias
>
> --
> ─────────────────────────────────────────────────────────────
>  Dipl.-Phys. Matthias Kretz
>
>  Web:   http://compeng.uni-frankfurt.de/?mkretz
>
>  SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc
> ─────────────────────────────────────────────────────────────
> _______________________________________________
> Vc mailing list
>[please enable javascript to see the address]
> https://compeng.uni-frankfurt.de/mailman/listinfo/vc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140612/2876d58f/attachment.html>


More information about the Vc mailing list
FIAS . Impressum . Privacy