From: liuhongt Date: Thu, 25 Nov 2021 05:51:57 +0000 (+0800) Subject: Fix typo in r12-5486. X-Git-Tag: basepoints/gcc-13~2778 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=379be00f45f65e0e8de72a50553dd9d2bab6cc08;p=thirdparty%2Fgcc.git Fix typo in r12-5486. gcc/ChangeLog: PR middle-end/103419 * match.pd: Fix typo, use the type of second parameter, not first one. --- diff --git a/gcc/match.pd b/gcc/match.pd index fbb5a5a1eeb9..e14f97ee1cda 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -4055,7 +4055,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) } (if (ibit == ibit2 && ibit >= 0 - && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@2)))))) + && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@0)))))) (match (nop_atomic_bit_test_and_p @0 @1 @3) (bit_and (convert?@3 (SYNC_FETCH_OR_XOR_N @2 INTEGER_CST@0)) @@ -4066,21 +4066,21 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) } (if (ibit == ibit2 && ibit >= 0 - && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@2)))))) + && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@0)))))) (match (nop_atomic_bit_test_and_p @0 @0 @4) (bit_and:c (convert1?@4 (ATOMIC_FETCH_OR_XOR_N @2 (nop_convert? (lshift@0 integer_onep@5 @6)) @3)) (convert2? @0)) - (if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@2))))) + (if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@0))))) (match (nop_atomic_bit_test_and_p @0 @0 @4) (bit_and:c (convert1?@4 (SYNC_FETCH_OR_XOR_N @2 (nop_convert? (lshift@0 integer_onep@3 @5)))) (convert2? @0)) - (if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@2))))) + (if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@0))))) (match (nop_atomic_bit_test_and_p @0 @1 @3) (bit_and@4 (convert?@3 (ATOMIC_FETCH_AND_N @2 INTEGER_CST@0 @5)) @@ -4092,7 +4092,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) } (if (ibit == ibit2 && ibit >= 0 - && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@2)))))) + && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@0)))))) (match (nop_atomic_bit_test_and_p @0 @1 @3) (bit_and@4 @@ -4105,21 +4105,21 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) } (if (ibit == ibit2 && ibit >= 0 - && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@2)))))) + && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@0)))))) (match (nop_atomic_bit_test_and_p @4 @0 @3) (bit_and:c (convert1?@3 (ATOMIC_FETCH_AND_N @2 (nop_convert?@4 (bit_not (lshift@0 integer_onep@6 @7))) @5)) (convert2? @0)) - (if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@2))))) + (if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@4))))) (match (nop_atomic_bit_test_and_p @4 @0 @3) (bit_and:c (convert1?@3 (SYNC_FETCH_AND_AND_N @2 (nop_convert?@4 (bit_not (lshift@0 integer_onep@6 @7))))) (convert2? @0)) - (if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@2))))) + (if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (@4))))) #endif