From adf1da77593f8851c6b78d22ebbc1124bbaf1de5 Mon Sep 17 00:00:00 2001 From: kelefth <konstantinos.eleftheriou@vrull.eu> Date: Tue, 4 Feb 2025 11:49:03 +0100 Subject: [PATCH] testsuite: XFAIL test in pr109393.c for ilp32 targets [PR116845] The match.pd canonicalization that this testcase checks for, is not applied on ilp32 targets. This XFAILs the test on ilp32 targets. PR testsuite/116845 gcc/testsuite/ChangeLog: * gcc.dg/pr109393.c: XFAIL on ilp32 targets. --- gcc/testsuite/gcc.dg/pr109393.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/pr109393.c b/gcc/testsuite/gcc.dg/pr109393.c index b2dd5a0b645c..108d30913894 100644 --- a/gcc/testsuite/gcc.dg/pr109393.c +++ b/gcc/testsuite/gcc.dg/pr109393.c @@ -20,4 +20,5 @@ int bar(int *a, int j) return (&a[j + 1] - 2) == &a[k]; } -/* { dg-final { scan-tree-dump-times "return 1;" 3 "optimized" } } */ +/* The pattern is not applied on ilp32 targets (PR116845). */ +/* { dg-final { scan-tree-dump-times "return 1;" 3 "optimized" { xfail { ilp32 } } } } */ -- GitLab