#define __MM_MALLOC_H
#include <x86intrin.h>
unsigned int __attribute__((target("crc32"))) test1(unsigned int CRC, unsigned char V) {
return __builtin_ia32_crc32qi(CRC, V);
}
unsigned int __attribute__((target("general-regs-only,crc32"))) test2(unsigned int CRC, unsigned char V) {
return __builtin_ia32_crc32qi(CRC, V);
}
unsigned int __attribute__((target("crc32,general-regs-only"))) test3(unsigned int CRC, unsigned char V) {
return __builtin_ia32_crc32qi(CRC, V);
}
unsigned int __attribute__((target("sse4.2"))) test4(unsigned int CRC, unsigned char V) {
return __builtin_ia32_crc32qi(CRC, V);
}
unsigned int __attribute__((target("sse4.2,general-regs-only,crc32"))) test5(unsigned int CRC, unsigned char V) {
return __builtin_ia32_crc32qi(CRC, V);
}
int __attribute__((target("sse4.2,no-crc32,crc32"))) test6(__m128i A, int LA, __m128i B, int LB) {
return _mm_cmpestra(A, LA, B, LB, 7);
}
int __attribute__((target("no-crc32,crc32,sse4.2"))) test7(__m128i A, int LA, __m128i B, int LB) {
return _mm_cmpestra(A, LA, B, LB, 7);
}