Revision 04d936b111068ed0247613675a3c458b6b5feb5b authored by Alexander Kruppa on 19 February 2014, 14:03:37 UTC, committed by Alexander Kruppa on 19 February 2014, 14:03:37 UTC
1 parent 869d21a
Raw File
sse41.c
#include <stdint.h>
#include <smmintrin.h>

int main() {
    volatile __v2di x = { (uint64_t) 42, (uint64_t) 17 };
    volatile __v2di y = { (uint64_t) 41, (uint64_t) 17 };
    x = _mm_cmpeq_epi64(x, y);
    /* the following test is for emulated 32-bit on physical 64-bit */
    if (sizeof(unsigned long) != 8)
      abort ();
    return 0;
}

back to top