1 #include "avx2-check.h"
8 volatile TYPE c_ref
[SIZE
];
9 extern int memcmp (const void *, const void *, size_t);
11 __attribute__ ((__noinline__
))
16 for (i
= 0; i
< SIZE
; ++i
)
18 c
[i
] = BIN_OP (a
[i
], b
[i
]);
19 #else /* Must be UN_OP */
28 for (i
= 0; i
< SIZE
; ++i
)
30 c_ref
[i
] = BIN_OP (a
[i
], b
[i
]);
31 #else /* Must be UN_OP */
32 c_ref
[i
] = UN_OP (a
[i
]);
40 for (i
= 0; i
< 4; ++i
)
42 for ( j
= 0; j
< SIZE
; ++j
)
51 /* We need to cast away volatility from c_ref here in order to eliminate
52 warning if libc version of memcpy is used here. */
53 if (memcmp (c
, (void *) c_ref
, SIZE
* sizeof (TYPE
)))