]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Fix gcc.target/powerpc/vsx-builtin-7.c test [PR119382]
authorJeevitha <jeevitha@linux.ibm.com>
Thu, 31 Jul 2025 09:32:17 +0000 (04:32 -0500)
committerJeevitha <jeevitha@linux.ibm.com>
Thu, 31 Jul 2025 09:32:17 +0000 (04:32 -0500)
commitd1c803a912f61aa3b9875578017d3cbf9353f58d
tree0d8d9e3baffab64f5e6d8b45ca18a6d0f48f981f
parent8b959ca27ee95ba32e5a587e0490f6cb49ef9760
testsuite: Fix gcc.target/powerpc/vsx-builtin-7.c test [PR119382]

The test vsx-builtin-7.c failed on powerpc64le-linux due to Identical
Code Folding (ICF) merging the functions insert_di_0_v2 and insert_di_0.
This behavior was introduced by commit r15-7961-gdc47161c1f32c3, which
enhanced alias analysis in ao_compare::compare_ao_refs, enabling the
compiler to identify and optimize structurally identical functions. As a
result, the compiler replaced insert_di_0_v2 with a tail call to
insert_di_0, altering the expected test behavior.

This patch adds -fno-ipa-icf to the test's dg-options to disable ICF,
avoiding function merging and ensuring the test executes correctly.

2025-06-24  Jeevitha Palanisamy  <jeevitha@linux.ibm.com>

gcc/testsuite/
PR testsuite/119382
* gcc.target/powerpc/vsx-builtin-7.c: Add '-fno-ipa-icf' to dg-options.

(cherry picked from commit a1fb757342058111fddcdc5ca2f866c61e87c9b8)
gcc/testsuite/gcc.target/powerpc/vsx-builtin-7.c