aboutsummaryrefslogtreecommitdiff
path: root/gcc/selftest.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2023-01-19 23:26:35 +0100
committerJakub Jelinek <jakub@redhat.com>2023-01-19 23:26:35 +0100
commitc81e68a9cdbb5411dce1f1da3b35854212305c7c (patch)
tree0292d083c0f9a7a5c7dd76fa59a04c3dedc5f6df /gcc/selftest.h
parent77a67e3a9294c825ac1a2b205fbb266e7c29e82b (diff)
downloadgcc-c81e68a9cdbb5411dce1f1da3b35854212305c7c.zip
gcc-c81e68a9cdbb5411dce1f1da3b35854212305c7c.tar.gz
gcc-c81e68a9cdbb5411dce1f1da3b35854212305c7c.tar.bz2
value-relation: Fix up relation_union [PR108447]
While looking at the PR, I've noticed one row in rr_union_table is wrong. relation_union should be commutative, but due to that bug is not. The following patch adds a self-test for that property (fails without the first hunk) and fixes that line. The actual floating point relation problem isn't fixed by this patch though. 2023-01-19 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/108447 * value-relation.cc (rr_union_table): Fix VREL_UNDEFINED row order. (relation_tests): Add self-tests for relation_{intersect,union} commutativity. * selftest.h (relation_tests): Declare. * function-tests.cc (test_ranges): Call it.
Diffstat (limited to 'gcc/selftest.h')
-rw-r--r--gcc/selftest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/selftest.h b/gcc/selftest.h
index 1abec2d..20d522a 100644
--- a/gcc/selftest.h
+++ b/gcc/selftest.h
@@ -244,6 +244,7 @@ extern void predict_cc_tests ();
extern void pretty_print_cc_tests ();
extern void range_tests ();
extern void range_op_tests ();
+extern void relation_tests ();
extern void gimple_range_tests ();
extern void read_rtl_function_cc_tests ();
extern void rtl_tests_cc_tests ();