public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/101325] New: [12 Regression] arm: Wrong code with MVE vcmpeqq intrinsic
@ 2021-07-05 15:57 acoplan at gcc dot gnu.org
  2021-07-05 16:36 ` [Bug target/101325] " acoplan at gcc dot gnu.org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-07-05 15:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101325
           Summary: [12 Regression] arm: Wrong code with MVE vcmpeqq
                    intrinsic
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

For the following C testcase:

#include <arm_mve.h>
mve_pred16_t foo(int8x16_t v, int8x16_t w)
{
    return vcmpeqq (v, w);
}

GCC trunk with -O2 -march=armv8.1-m.main+mve -mfloat-abi=hard gives:

foo:
        vcmp.i8  eq, q0, q1
        vmrs     r0, P0 @ movhi
        and     r0, r0, #1
        bx      lr

but the and clears all but the lowest bit of the mask, which is incorrect. GCC
11 and 10 do not appear to be affected. Instead, they generate:

foo:
        vcmp.i8 eq, q0, q1
        vmrs     r0, P0 @ movhi
        uxth    r0, r0
        bx      lr

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2022-02-23  6:44 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 15:57 [Bug target/101325] New: [12 Regression] arm: Wrong code with MVE vcmpeqq intrinsic acoplan at gcc dot gnu.org
2021-07-05 16:36 ` [Bug target/101325] " acoplan at gcc dot gnu.org
2021-07-06  6:29 ` rguenth at gcc dot gnu.org
2021-07-06  9:16 ` [Bug target/101325] [12 Regression] arm: Wrong code with MVE vcmpeqq intrinsic since r12-671-gd083fbf72 acoplan at gcc dot gnu.org
2021-07-06 10:13 ` clyon at gcc dot gnu.org
2021-07-07  8:19 ` clyon at gcc dot gnu.org
2021-07-07  8:29 ` clyon at gcc dot gnu.org
2021-07-07  8:37 ` clyon at gcc dot gnu.org
2021-07-07  9:54 ` clyon at gcc dot gnu.org
2021-07-07 11:25 ` clyon at gcc dot gnu.org
2021-07-07 11:39 ` rearnsha at gcc dot gnu.org
2021-07-07 12:13 ` clyon at gcc dot gnu.org
2021-07-07 12:42 ` rearnsha at gcc dot gnu.org
2021-07-09 15:31 ` clyon at gcc dot gnu.org
2022-01-17 14:05 ` rguenth at gcc dot gnu.org
2022-02-22 15:58 ` cvs-commit at gcc dot gnu.org
2022-02-22 15:58 ` cvs-commit at gcc dot gnu.org
2022-02-22 15:58 ` cvs-commit at gcc dot gnu.org
2022-02-22 15:58 ` cvs-commit at gcc dot gnu.org
2022-02-22 15:58 ` cvs-commit at gcc dot gnu.org
2022-02-22 15:58 ` cvs-commit at gcc dot gnu.org
2022-02-22 16:06 ` clyon at gcc dot gnu.org
2022-02-23  6:44 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).