summaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-05 11:22:28 +0000
committerthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-05 11:22:28 +0000
commit04407529cedc6d977591b3433d03ad9ed8769597 (patch)
tree22ea68efbe565c6d94846fa9b5ecbb5f410b0749 /gcc/rtl.h
parent08344fc762bb7f7ad5ae6608d1b070cf25bb5445 (diff)
downloadgcc-04407529cedc6d977591b3433d03ad9ed8769597.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217118 138bc75d-0d04-0410-961f-82ee72b054a4
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 fec9658ec29..09d20e2b544 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