[Bug inline-asm/58044] New: -mno-see2avx does not seems to work

2013-08-01 Thread jerome.pouiller at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58044

Bug ID: 58044
   Summary: -mno-see2avx does not seems to work
   Product: gcc
   Version: 4.7.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: inline-asm
  Assignee: unassigned at gcc dot gnu.org
  Reporter: jerome.pouiller at gmail dot com

Created attachment 30581
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30581&action=edit
Test case

It looks like gcc alway translate sse instruction in avx instruction whatever
the use of option -mno-see2avx. 

If  you compile attached tests case with
  gcc -Wall -mtune=generic -mavx2 intrinsics.c -o avx.out 
and with 
  gcc -Wall -mtune=generic -mavx2 -mno-sse2avx intrinsics.c -o noavx.out 

the assembly is the same. Maybe I do something wrong?

--
Jérôme Pouiller

[Bug inline-asm/58044] -mno-see2avx does not seems to work

2013-08-02 Thread jerome.pouiller at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58044

--- Comment #1 from Jérôme Pouiller  ---
AVX instructions seems to not been generated by assembler. Compiler directly
generate these instructions. Since -mavx2 is specified, compiler behaviour can
be considered correct. But, I don't see any case where -mno-sse2avx may change
result, isn't? This option may be removed?


For my specific test case, there is a workaround. I can add 
__attribute__((__target__("no-avx"))) to memcpy_16to8_sse.