From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A83DB3846074; Tue, 9 Feb 2021 13:25:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A83DB3846074 From: "gengqi at linux dot alibaba.com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzk5MDIyXSBOZXc6IFdoZW4g4oCYbG9uZyBpbnTigJkg?= =?UTF-8?B?aXMgMzIgYml0c++8jHRoZSBjb252ZXJzaW9uIGJldHdlZW4gJ3ZlY3Rvcigy?= =?UTF-8?B?KSBpbnQnIGFuZCAndmVjdG9yKDIpIGxvbmcgaW50JyBjYW4ndCBiZSBkb25l?= =?UTF-8?B?IHdpdGhvdXQgJ2ZsYXgtdmVjdG9yLWNvbnZlcnNpb25zJy4=?= Date: Tue, 09 Feb 2021 13:25:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gengqi at linux dot alibaba.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2021 13:25:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99022 Bug ID: 99022 Summary: When =E2=80=98long int=E2=80=99 is 32 bits=EF=BC=8Cthe = conversion between 'vector(2) int' and 'vector(2) long int' can't be done without 'flax-vector-conversions'. Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gengqi at linux dot alibaba.com Target Milestone: --- Created attachment 50150 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D50150&action=3Dedit riscv64-unknown-linux-gnu-gcc -march=3Drv32imac -mabi=3Dilp32 needflax.c -O= 2 -S riscv64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/lhome/gengq/riscv64-linux-mastertest/bin/riscv64-unknown-lin= ux-gnu-gcc COLLECT_LTO_WRAPPER=3D/lhome/gengq/riscv64-linux-mastertest/libexec/gcc/ris= cv64-unknown-linux-gnu/11.0.0/lto-wrapper Target: riscv64-unknown-linux-gnu Configured with: /lhome/gengq/riscv-gnu-toolchain-master/riscv-gnu-toolchain/riscv-gcc/confi= gure --target=3Driscv64-unknown-linux-gnu --prefix=3D/lhome/gengq/riscv64-linux-mastertest --with-sysroot=3D/lhome/gengq/riscv64-linux-mastertest/sysroot --with-syste= m-zlib --enable-shared --enable-tls --enable-languages=3Dc,c++,fortran --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libsanitizer --disable-nls --disable-bootstrap --src=3D.././riscv= -gcc --disable-multilib --with-abi=3Dlp64d --with-arch=3Drv64gcpxthead 'CFLAGS_FOR_TARGET=3D-O2 -mcmodel=3Dmedlow' 'CXXFLAGS_FOR_TARGET=3D-O2=20= =20 -mcmodel=3Dmedlow' Thread model: posix riscv64-unknown-linux-gnu-gcc -march=3Drv32imac -mabi=3Dilp32 needflax.c -O= 2 -S needflax.c: In function 'flax': needflax.c:6:3: note: use '-flax-vector-conversions' to permit conversions between vectors with differing element types or numbers of subparts 6 | return a; | ^~~~~~ needflax.c:6:10: error: incompatible types when returning type 'int32x2_t' = {aka '__vector(2) int'} but 'lint32x2_t' {aka '__vector(2) long int'} was expect= ed 6 | return a; | ^=