diff options
author | Jiong Wang <jiong.wang@arm.com> | 2014-10-27 21:58:59 +0000 |
---|---|---|
committer | Jiong Wang <jiwang@gcc.gnu.org> | 2014-10-27 21:58:59 +0000 |
commit | a016932063c1645d9b54eb5ea5caef0b7bb957fb (patch) | |
tree | 7a71eba996b4907ae6e46f5309949b390407d7d9 /gcc/optabs.c | |
parent | 949bba26ff6b6f0402ed4574b4dbc2353b6509ed (diff) | |
download | gcc-a016932063c1645d9b54eb5ea5caef0b7bb957fb.zip gcc-a016932063c1645d9b54eb5ea5caef0b7bb957fb.tar.gz gcc-a016932063c1645d9b54eb5ea5caef0b7bb957fb.tar.bz2 |
PR63442 libgcc_cmp_return_mode not always return word_mode
gcc/
PR target/63442
* optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
From-SVN: r216765
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index c3623ea..677958f 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -4294,7 +4294,7 @@ prepare_cmp_insn (rtx x, rtx y, enum rtx_code comparison, rtx size, y = const0_rtx; } - *pmode = word_mode; + *pmode = ret_mode; prepare_cmp_insn (x, y, comparison, NULL_RTX, unsignedp, methods, ptest, pmode); } |