[Issue 13852] New: SIMD comparison

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Dec 10 08:53:01 PST 2014


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 at puremagic.com
          Reporter: john.loughran.colvin at 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.

--


More information about the Digitalmars-d-bugs mailing list