aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2016-09-13 09:47:10 +0000
committerMaciej W. Rozycki <macro@gcc.gnu.org>2016-09-13 09:47:10 +0000
commitcaa05ce2013e867928534e2b4cf146d7e35bbeaf (patch)
treec54c4d7c956c31d24da020d24ef59a0a45db3b0a
parent14bce2578e2916b66d7ae7a42a83c510d8d7f804 (diff)
downloadgcc-caa05ce2013e867928534e2b4cf146d7e35bbeaf.zip
gcc-caa05ce2013e867928534e2b4cf146d7e35bbeaf.tar.gz
gcc-caa05ce2013e867928534e2b4cf146d7e35bbeaf.tar.bz2
* optabs.c (prepare_cmp_insn): Update documentation comment.
From-SVN: r240108
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/optabs.c12
2 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ad74cc1..a11a273 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
+
+ * optabs.c (prepare_cmp_insn): Update documentation comment.
+
2016-09-13 Jakub Jelinek <jakub@redhat.com>
Manuel Lopez-Ibanez <manu@gcc.gnu.org>
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 87b4f97..e41747a 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -3716,13 +3716,17 @@ can_compare_p (enum rtx_code code, machine_mode mode,
}
/* This function is called when we are going to emit a compare instruction that
- compares the values found in *PX and *PY, using the rtl operator COMPARISON.
+ compares the values found in X and Y, using the rtl operator COMPARISON.
- *PMODE is the mode of the inputs (in case they are const_int).
- *PUNSIGNEDP nonzero says that the operands are unsigned;
+ If they have mode BLKmode, then SIZE specifies the size of both operands.
+
+ UNSIGNEDP nonzero says that the operands are unsigned;
this matters if they need to be widened (as given by METHODS).
- If they have mode BLKmode, then SIZE specifies the size of both operands.
+ *PTEST is where the resulting comparison RTX is returned or NULL_RTX
+ if we failed to produce one.
+
+ *PMODE is the mode of the inputs (in case they are const_int).
This function performs all the setup necessary so that the caller only has
to emit a single comparison insn. This setup can involve doing a BLKmode