https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69891

            Bug ID: 69891
           Summary: wrong code with -mstringop-strategy=libcall @ i686
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: i686-pc-linux-gnu

Created attachment 37747
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37747&action=edit
reduced testcase

Output:
$ i686-pc-linux-gnu-gcc -O -fno-tree-fre -mstringop-strategy=libcall testcase.c 
testcase.c: In function 'foo':
testcase.c:9:1: note: The ABI for passing parameters with 32-byte alignment has
changed in GCC 4.6
 foo(v32u32 v32u32_0, v32u16 v32u16_1, v32u32 v32u32_1, v32u64 v32u64_1)
 ^~~
testcase.c:9:1: warning: AVX vector argument without AVX enabled changes the
ABI [-Wpsabi]
$ ./a.out 
00000007
Aborted


$ i686-pc-linux-gnu-gcc -v                                                      
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-i686/bin/i686-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-233588-checking-yes-rtl-df-nographite-i686/bin/../libexec/gcc/i686-pc-linux-gnu/6.0.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=i686-pc-linux-gnu --with-ld=/usr/bin/i686-pc-linux-gnu-ld
--with-as=/usr/bin/i686-pc-linux-gnu-as --with-sysroot=/usr/i686-pc-linux-gnu
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-233588-checking-yes-rtl-df-nographite-i686
Thread model: posix
gcc version 6.0.0 20160220 (experimental) (GCC) 


Reproduces with x86_64 compiler -m32 as well.

Tested revisions:
trunk r233588 - FAIL
5-branch r233581 - FAIL
4_9-branch r233576 - FAIL
4_8-branch r224828 - FAIL
4_7-branch r211571 - FAIL
4_6-branch - doesn't compile

Reply via email to