summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-22 11:39:48 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-22 11:39:48 +0000
commit2ebf9be5908f6ba45ba6011c29b0200d512feaa1 (patch)
treea7c440e3f91525d5113d248078aeff2cd72d11ed /gcc/optabs.c
parentb34ed2ef657d6f9573ddaf3bc76780d78fbeb134 (diff)
downloadgcc-2ebf9be5908f6ba45ba6011c29b0200d512feaa1.tar.gz
* optabs.c (prepare_cmp_insn): Expand comparison of the result
of memcmp through generic comparison expansion code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191641 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 7cae98cf718..cdd5d69760d 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -4108,10 +4108,11 @@ prepare_cmp_insn (rtx x, rtx y, enum rtx_code comparison, rtx size,
XEXP (x, 0), Pmode,
XEXP (y, 0), Pmode,
size, cmp_mode);
-
- *ptest = gen_rtx_fmt_ee (comparison, VOIDmode, result, const0_rtx);
- *pmode = result_mode;
- return;
+ x = result;
+ y = const0_rtx;
+ mode = result_mode;
+ methods = OPTAB_LIB_WIDEN;
+ unsignedp = false;
}
/* Don't allow operands to the compare to trap, as that can put the