www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13852] New: SIMD comparison

https://issues.dlang.org/show_bug.cgi?id=13852

          Issue ID: 13852
           Summary: SIMD comparison
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

long2 a,b;
auto c = a > b;

Error: incompatible types for ((a) > (b)): '__vector(long[2])' and
'__vector(long[2])'

As of SSE4_2, x86_64 has PCMPGT. GCC vector types have support for this and
even perform the necessary subtractions to use it for unsigned types.

--
Dec 10 2014