diff options
author | Andrew Carlotti <andrew.carlotti@arm.com> | 2023-05-04 16:53:00 +0100 |
---|---|---|
committer | Andrew Carlotti <andrew.carlotti@arm.com> | 2023-10-18 16:23:24 +0100 |
commit | ff05a3e91ddac56acd23db107a9a44f246aeb8b1 (patch) | |
tree | b078abe05ce53c19bab331efd58ddae9b3f2b8e6 /gcc/config/aarch64/aarch64.cc | |
parent | bc4bd69faf986326f6b0fd0400cdd6871577afd1 (diff) | |
download | gcc-ff05a3e91ddac56acd23db107a9a44f246aeb8b1.zip gcc-ff05a3e91ddac56acd23db107a9a44f246aeb8b1.tar.gz gcc-ff05a3e91ddac56acd23db107a9a44f246aeb8b1.tar.bz2 |
aarch64: Replace duplicated selftests
gcc/ChangeLog:
* config/aarch64/aarch64.cc (aarch64_test_fractional_cost):
Test <= instead of testing < twice.
Diffstat (limited to 'gcc/config/aarch64/aarch64.cc')
-rw-r--r-- | gcc/config/aarch64/aarch64.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 62b1ae0..a28b66a 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -28079,18 +28079,18 @@ aarch64_test_fractional_cost () ASSERT_EQ (cf (2, 3) * 5, cf (10, 3)); ASSERT_EQ (14 * cf (11, 21), cf (22, 3)); - ASSERT_TRUE (cf (4, 15) < cf (5, 15)); - ASSERT_FALSE (cf (5, 15) < cf (5, 15)); - ASSERT_FALSE (cf (6, 15) < cf (5, 15)); - ASSERT_TRUE (cf (1, 3) < cf (2, 5)); - ASSERT_TRUE (cf (1, 12) < cf (1, 6)); - ASSERT_FALSE (cf (5, 3) < cf (5, 3)); - ASSERT_TRUE (cf (239, 240) < 1); - ASSERT_FALSE (cf (240, 240) < 1); - ASSERT_FALSE (cf (241, 240) < 1); - ASSERT_FALSE (2 < cf (207, 104)); - ASSERT_FALSE (2 < cf (208, 104)); - ASSERT_TRUE (2 < cf (209, 104)); + ASSERT_TRUE (cf (4, 15) <= cf (5, 15)); + ASSERT_TRUE (cf (5, 15) <= cf (5, 15)); + ASSERT_FALSE (cf (6, 15) <= cf (5, 15)); + ASSERT_TRUE (cf (1, 3) <= cf (2, 5)); + ASSERT_TRUE (cf (1, 12) <= cf (1, 6)); + ASSERT_TRUE (cf (5, 3) <= cf (5, 3)); + ASSERT_TRUE (cf (239, 240) <= 1); + ASSERT_TRUE (cf (240, 240) <= 1); + ASSERT_FALSE (cf (241, 240) <= 1); + ASSERT_FALSE (2 <= cf (207, 104)); + ASSERT_TRUE (2 <= cf (208, 104)); + ASSERT_TRUE (2 <= cf (209, 104)); ASSERT_TRUE (cf (4, 15) < cf (5, 15)); ASSERT_FALSE (cf (5, 15) < cf (5, 15)); |