]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/117958 - ifcombine differences on aarch64 vs rest
authorRichard Biener <rguenther@suse.de>
Fri, 17 Jan 2025 12:18:11 +0000 (13:18 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 17 Jan 2025 12:20:25 +0000 (13:20 +0100)
ifcombine depends on BRANCH_COST and the testcase relies on ifcombine
to fully optimize the function.  But the important parts are optimized
everywhere, so the following delectively XFAILs the less important part.

PR testsuite/117958
* g++.dg/tree-ssa/pr117123.C: XFAIL parts on aarch64-*-*.

gcc/testsuite/g++.dg/tree-ssa/pr117123.C

index 2aa2810de9525b9aaec48ae797161f5399bf49e8..29b69dfa432c9b39c825ac4354e25ba7e2ff8f4e 100644 (file)
@@ -49,4 +49,6 @@ int patatino(int a) {
 }
 
 // { dg-final { scan-tree-dump-not "dont_be_here" "optimized" } }
-// { dg-final { scan-tree-dump-times "if " 3 "optimized" } }
+// Depending on LOGICAL_OP_NON_SHORT_CIRCUIT (or BRANCH_COST) this might
+// or might not be optimized fully
+// { dg-final { scan-tree-dump-times "if " 3 "optimized" { xfail { aarch64-*-* } } } }