hi guys
error occured while i run my avx program which was compiled by gcc 4.9,here is the error
##
Program received signal SIGILL, Illegal instruction.
0x0000000000402da0 in _mm256_set_epi32 (__H=16711935, __G=16711935,
__F=16711935, __E=16711935, __D=16711935, __C=16711935, __B=16711935,
__A=16711935)
at /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/include/avxintrin.h:1231
1231 return __extension__ (__m256i)(__v8si){ __H, __G, __F, __E,
##
and the makefile:
##
Objects=TurboCode.o test.o
CC=gcc
CFLAGS=-march=native -mavx -mavx2 -ggdb
avx: $(Objects)
$(CC) $(CFLAGS) -o avx $(Objects)
TurboCode.o:TurboCode.c TurboCode.h
$(CC) $(CFLAGS) -c $<
test.o:test.c TurboCode.h
$(CC) $(CFLAGS) -c $<
.PHONY:all clean
clean:
rm $(Objects)
all:avx clean
##
do anyone know how to solve?