]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix pr94589-5a.c
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 4 Jul 2026 02:59:19 +0000 (19:59 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 4 Jul 2026 03:07:00 +0000 (20:07 -0700)
I did test this testcase but I must have missed it failing somehow.
Anyways the problem is the scan-tree-dump is missing checking for u< and u>
which can show up in some cases.

Pushed as obvious after a quick test to make sure there is no failure any more.

gcc/testsuite/ChangeLog:

* gcc.dg/pr94589-5a.c: Allow for `u<` and `u>` in the scan too.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/gcc.dg/pr94589-5a.c

index f96e72786b2d2014ba6a890ea10ba7571f1b2da3..73e188edbfc7ff7a42224ae0691dfdd986f56090 100644 (file)
@@ -1,8 +1,8 @@
 /* PR tree-optimization/94589 */
 /* { dg-do compile { target inf } } */
 /* { dg-options "-O2 -g0 -fdump-tree-optimized -fno-trapping-math" } */
-/* { dg-final { scan-tree-dump-times "\[ij]_\[0-9]+\\(D\\) (?:<|<=|>|>=|u>=|u<=) \[ij]_\[0-9]+\\(D\\)" 24 "optimized" } } */
-/* { dg-final { scan-tree-dump-times "i_\[0-9]+\\(D\\) (?:<|<=|>|>=|u>=|u<=) 5\\.0" 24 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "\[ij]_\[0-9]+\\(D\\) (?:<|<=|>|>=|u>=|u<=|u<|u>) \[ij]_\[0-9]+\\(D\\)" 24 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "i_\[0-9]+\\(D\\) (?:<|<=|>|>=|u>=|u<=|u<|u>) 5\\.0" 24 "optimized" } } */
 
 #define A __attribute__((noipa))
 A int f3 (double i, double j) { int c; if (i == j) c = 0; else if (i < j) c = -1; else if (i > j) c = 1; else c = -128; return c > 0; }