Commit 6ec96dcb by Richard Biener Committed by Richard Biener

match.pd: Add BIT_FIELD_REF canonicalizations.

2018-07-24  Richard Biener  <rguenther@suse.de>

	* match.pd: Add BIT_FIELD_REF canonicalizations.

From-SVN: r262946
parent 4f3c75ba
2018-07-24 Richard Biener <rguenther@suse.de>
* match.pd: Add BIT_FIELD_REF canonicalizations.
2018-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR c/86617
......
......@@ -4659,6 +4659,19 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
/* Canonicalizations of BIT_FIELD_REFs. */
(simplify
(BIT_FIELD_REF (BIT_FIELD_REF @0 @1 @2) @3 @4)
(BIT_FIELD_REF @0 @3 { const_binop (PLUS_EXPR, bitsizetype, @2, @4); }))
(simplify
(BIT_FIELD_REF (view_convert @0) @1 @2)
(BIT_FIELD_REF @0 @1 @2))
(simplify
(BIT_FIELD_REF @0 @1 integer_zerop)
(if (tree_int_cst_equal (@1, TYPE_SIZE (TREE_TYPE (@0))))
(view_convert @0)))
(simplify
(BIT_FIELD_REF @0 @1 @2)
(switch
(if (TREE_CODE (TREE_TYPE (@0)) == COMPLEX_TYPE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment