aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/s390/s390.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/s390/s390.cc')
-rw-r--r--gcc/config/s390/s390.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc
index cec0548..573b229 100644
--- a/gcc/config/s390/s390.cc
+++ b/gcc/config/s390/s390.cc
@@ -1859,7 +1859,7 @@ s390_canonicalize_comparison (int *code, rtx *op0, rtx *op1,
&& CONST_INT_P (XEXP (*op0, 1))
&& CONST_INT_P (*op1)
&& INTVAL (XEXP (*op0, 1)) == -3
- && *code == EQ)
+ && (*code == EQ || *code == NE))
{
if (INTVAL (*op1) == 0)
{