[Bug target/86334] New: wrong code with -march=athlon -mmemcpy-strategy=libcall:-1:noalign
zsojka at seznam dot cz
gcc-bugzilla@gcc.gnu.org
Wed Jun 27 16:25:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86334
Bug ID: 86334
Summary: wrong code with -march=athlon
-mmemcpy-strategy=libcall:-1:noalign
Product: gcc
Version: 9.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 44326
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44326&action=edit
reduced testcase
Output:
$ i686-pc-linux-gnu-gcc -O -march=athlon -minline-all-stringops
-minline-stringops-dynamically -mmemcpy-strategy=libcall:-1:noalign testcase.c
testcase.c: In function 'foo':
testcase.c:5:1: warning: AVX512F vector return without AVX512F enabled changes
the ABI [-Wpsabi]
{
^
$ ./a.out
Aborted
There is missing any initialization of the data -> it contains any garbage just
present on the stack.
$ 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-262017-checking-yes-rtl-df-extra-i686/bin/../libexec/gcc/i686-pc-linux-gnu/9.0.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --with-sysroot=/usr/i686-pc-linux-gnu
--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 --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-262017-checking-yes-rtl-df-extra-i686
Thread model: posix
gcc version 9.0.0 20180625 (experimental) (GCC)
More information about the Gcc-bugs
mailing list