]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rtl-optimization/119982 - XFAIL part of gcc.target/i386/pr109362.c
authorRichard Biener <rguenther@suse.de>
Fri, 6 Feb 2026 10:03:54 +0000 (11:03 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 6 Feb 2026 10:50:26 +0000 (11:50 +0100)
This XFAILs the gcc.target/i386/pr109362.c testcase where we now
need an additional register for the address part of a sequence
of two atomic loads because TER no longer applies after we now
hoist the address computation out of a loop.  In the PR I noted
how RTL propagation could handle this.  In the end this restores
the state we had in GCC 12 and earlier where in GCC 13 the code
generation improved by accident.

This resolves a P1 testsuite regression.

PR rtl-optimization/119982
* gcc.target/i386/pr109362.c: XFAIL.

gcc/testsuite/gcc.target/i386/pr109362.c

index 0e44dae03892c8007e445de7c4923c603be48cb2..445a3ccdd38d13aa33984b8567f1e26123f6c1a1 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-O2 -masm=att" } */
 /* Ensure we don't waste a register set to %rdi + 8.  */
 /* { dg-final { scan-assembler "\tmovq\t\\\(%rdi\\\), %r" } } */
-/* { dg-final { scan-assembler "\tmovq\t8\\\(%rdi\\\), %r" } } */
+/* { dg-final { scan-assembler "\tmovq\t8\\\(%rdi\\\), %r" { xfail *-*-* } } } */
 
 struct S { long a, b; };