2014-12-13 Richard Biener <rguenther@suse.de>
PR middle-end/61559
* match.pd: Implement bswap patterns for transforms checked by
gcc.dg/builtin-bswap-8.c.
From-SVN: r217464
+2014-12-13 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/61559
+ * match.pd: Implement bswap patterns for transforms checked by
+ gcc.dg/builtin-bswap-8.c.
+
2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
* lra.c (lra): Switch off rematerialization pass.
(simplify
(imagpart (complex @0 @1))
@1)
+
+
+/* BSWAP simplifications, transforms checked by gcc.dg/builtin-bswap-8.c. */
+(for bswap (BUILT_IN_BSWAP16 BUILT_IN_BSWAP32 BUILT_IN_BSWAP64)
+ (simplify
+ (bswap (bswap @0))
+ @0)
+ (simplify
+ (bswap (bit_not (bswap @0)))
+ (bit_not @0))
+ (for bitop (bit_xor bit_ior bit_and)
+ (simplify
+ (bswap (bitop:c (bswap @0) @1))
+ (bitop @0 (bswap @1)))))