From 6fed0d7ad6dcf9f59de2e0f77692289b21ad7b58 Mon Sep 17 00:00:00 2001 From: macro Date: Tue, 13 Sep 2016 09:47:10 +0000 Subject: * optabs.c (prepare_cmp_insn): Update documentation comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240108 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/optabs.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'gcc/optabs.c') diff --git a/gcc/optabs.c b/gcc/optabs.c index 87b4f978420..e41747a630f 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 -- cgit v1.2.1