gcc/ChangeLog:
2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
PR target/69247
* config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
gcc/testsuite/ChangeLog:
2016-01-13 Jakub Jelinek <jakub@redhat.com>
PR target/69247
* gcc.dg/pr69247.c: New test.
From-SVN: r232318
+2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
+ PR target/69247
+ * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
+
2016-01-13 Richard Biener <rguenther@suse.de>
PR tree-optimization/69242
(bswap:HI (match_operand:HI 1 "register_operand" "")))]
"TARGET_CPU_ZARCH"
[(set (match_dup 2) (bswap:SI (match_dup 3)))
- (set (match_dup 2) (lshiftrt:SI (match_dup 2)
- (const_int 16)))
- (set (match_dup 0) (subreg:HI (match_dup 2) 2))]
+ (set (match_dup 2) (lshiftrt:SI (match_dup 2) (const_int 16)))]
{
- operands[2] = gen_reg_rtx (SImode);
+ operands[2] = simplify_gen_subreg (SImode, operands[0], HImode, 0);
operands[3] = simplify_gen_subreg (SImode, operands[1], HImode, 0);
})
+2016-01-13 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/69247
+ * gcc.dg/pr69247.c: New test.
+
2016-01-13 Richard Biener <rguenther@suse.de>
PR tree-optimization/69242
--- /dev/null
+/* PR target/69247 */
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+/* { dg-additional-options "-march=zEC12" { target s390*-*-* } } */
+
+void foo (short *);
+
+void
+bar (short x, int y)
+{
+ if (y)
+ x = x << 8 | (unsigned short) x >> 8;
+ foo (&x);
+}