https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128794
Bug ID: 128794
Summary: [17 Regression] Likely testsuite bug in arc port
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: law at gcc dot gnu.org
Target Milestone: ---
Target: arc
My tester started flagging these a few days ago:
arc-sim: gcc: gcc.target/arc/mult-cmp0.c scan-assembler-times mov\\.eq\\s+ 2
arc-sim: gcc: gcc.target/arc/mult-cmp0.c scan-assembler-times mov\\.ne\\s+ 2
This patch is the trigger:
commit 726e295064ab3c2b4184753e3e3628ec9973d46b
Author: Roger Sayle <[email protected]>
Date: Sun Nov 15 14:59:47 2026 +0000
ARC: Improved SImode conditional moves (improves DImode shifts).
This patch adds an alternative to ARC's *movsicc_insn to improve register
allocation by allowing the input operands to be swapped by reversing the
condition of the conditional move. A example of the benefits can be
seen in the expansion of DImode shifts, where x << y currently generates
[ ... ]
I suspect this is a case where we just want to match both forms and check for
the total number of conditional moves. But I haven't verified that.