https://gcc.gnu.org/g:ff0b2fe58c2531d58e609e84d2277c7f5dd7bbb1
commit r17-5308-gff0b2fe58c2531d58e609e84d2277c7f5dd7bbb1 Author: John David Anglin <[email protected]> Date: Sun Oct 18 15:58:35 2026 -0400 testsuite: Fix g++.dg/opt/mem-notrap-load-builtin.C on hppa*64*-*-* Address splitting separates the 'this' pointer from the memory expression during expand on 64-bit hppa. So, we need to disable the scan-rtl-dump on this target. 2026-10-18 John David Anglin <[email protected]> gcc/testsuite/ChangeLog: * g++.dg/opt/mem-notrap-load-builtin.C: Disable scan-rtl-dump for 64-bit PA-RISC targets because address splitting separates the 'this' pointer attribute from the memory expression during expand. Diff: --- gcc/testsuite/g++.dg/opt/mem-notrap-load-builtin.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/opt/mem-notrap-load-builtin.C b/gcc/testsuite/g++.dg/opt/mem-notrap-load-builtin.C index 1e8bfa0c603a..c8b134277a16 100644 --- a/gcc/testsuite/g++.dg/opt/mem-notrap-load-builtin.C +++ b/gcc/testsuite/g++.dg/opt/mem-notrap-load-builtin.C @@ -18,5 +18,5 @@ blocks::compare () const return __builtin_memcmp (first, second, sizeof (first)); } -// { dg-final { scan-rtl-dump {\(mem(?:/[a-z])*/c(?:/[a-z])*:[^\n\r]*\[ this \]} "expand" } } +// { dg-final { scan-rtl-dump "expand" {\(mem(?:/[a-z])*/c(?:/[a-z])*:[^\n\r]*\[ this \]} { target { ! hppa*64*-*-* } } } } // { dg-final { scan-assembler-not {\mmemcmp\M} } }
