aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorAlex Velenko <Alex.Velenko@arm.com>2014-11-05 11:22:28 +0000
committerThomas Preud'homme <thopre01@gcc.gnu.org>2014-11-05 11:22:28 +0000
commit96023bbaff939ca5fe957688a940f045201c55c1 (patch)
tree22ea68efbe565c6d94846fa9b5ecbb5f410b0749 /gcc/rtl.h
parent8c7686294ebecda8d3801e0a38ba174c9b527f8f (diff)
downloadgcc-96023bbaff939ca5fe957688a940f045201c55c1.zip
gcc-96023bbaff939ca5fe957688a940f045201c55c1.tar.gz
gcc-96023bbaff939ca5fe957688a940f045201c55c1.tar.bz2
simplify-rtx.c (simplify_binary_operation_1): Div check added.
2014-11-05 Alex Velenko <Alex.Velenko@arm.com> gcc/ * simplify-rtx.c (simplify_binary_operation_1): Div check added. * rtl.h (SUBREG_P): New macro added. gcc/testsuite/ * gcc.dg/asr-div1.c: New testcase. From-SVN: r217118
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index fec9658..09d20e2 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -789,6 +789,9 @@ struct GTY(()) rtvec_def {
/* Predicate yielding nonzero iff X is a data for a jump table. */
#define JUMP_TABLE_DATA_P(INSN) (GET_CODE (INSN) == JUMP_TABLE_DATA)
+/* Predicate yielding nonzero iff RTX is a subreg. */
+#define SUBREG_P(RTX) (GET_CODE (RTX) == SUBREG)
+
template <>
template <>
inline bool