From: John David Anglin <[email protected]> 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. --- 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 1e8bfa0c603af..c8b134277a165 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} } } -- 2.54.0
