Message ID | 541B0C02.5080206@arm.com |
---|---|
State | New |
Headers | show |
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index d1b59a1efd81ee46910e7971a2f0cd1b6e3e10b0..8c2b83614f98675b0d55e5e724e6d9c9e0c9b909 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -6647,8 +6647,8 @@ tree_swap_operands_p (const_tree arg0, const_tree arg1, bool reorder) if (CONSTANT_CLASS_P (arg0)) return 1; - STRIP_NOPS (arg0); - STRIP_NOPS (arg1); + STRIP_SIGN_NOPS (arg0); + STRIP_SIGN_NOPS (arg1); if (TREE_CONSTANT (arg1)) return 0;