diff options
author | Andreas Krebbel <Andreas.Krebbel@de.ibm.com> | 2014-03-24 17:38:09 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2014-03-24 17:38:09 +0000 |
commit | 72a4ddf2b5f8167dd49a483888f14d34c3da582f (patch) | |
tree | aeae7ffed74971f9fea144af390f17c819a9157c /gcc/expr.h | |
parent | 2b2384e8c11ac54f8add062584ada9480079a25b (diff) | |
download | gcc-72a4ddf2b5f8167dd49a483888f14d34c3da582f.zip gcc-72a4ddf2b5f8167dd49a483888f14d34c3da582f.tar.gz gcc-72a4ddf2b5f8167dd49a483888f14d34c3da582f.tar.bz2 |
re PR rtl-optimization/60501 (LRA emits add patterns which might clobber cc)
2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
PR rtl-optimization/60501
* optabs.def (addptr3_optab): New optab.
* optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
* doc/md.texi ("addptrm3"): Document new RTL standard expander.
* expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
* lra.c (emit_add3_insn): Use the addptr pattern if available.
* config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
From-SVN: r208796
Diffstat (limited to 'gcc/expr.h')
-rw-r--r-- | gcc/expr.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -180,10 +180,12 @@ extern void emit_libcall_block (rtx, rtx, rtx, rtx); Likewise for subtraction and for just copying. */ extern rtx gen_add2_insn (rtx, rtx); extern rtx gen_add3_insn (rtx, rtx, rtx); +extern rtx gen_addptr3_insn (rtx, rtx, rtx); extern rtx gen_sub2_insn (rtx, rtx); extern rtx gen_sub3_insn (rtx, rtx, rtx); extern rtx gen_move_insn (rtx, rtx); extern int have_add2_insn (rtx, rtx); +extern int have_addptr3_insn (rtx, rtx, rtx); extern int have_sub2_insn (rtx, rtx); /* Emit a pair of rtl insns to compare two rtx's and to jump |