2020-01-10 Richard Biener <rguenther@suse.de>
PR testsuite/93216
* gcc.dg/optimize-bswaphi-1.c: Split previously added
case into a LE and BE variant.
From-SVN: r280097
+2020-01-10 Richard Biener <rguenther@suse.de>
+
+ PR testsuite/93216
+ * gcc.dg/optimize-bswaphi-1.c: Split previously added
+ case into a LE and BE variant.
+
2020-01-09 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/65428
}
unsigned short
-get_unaligned_16 (unsigned char *p)
+get_unaligned_16_le (unsigned char *p)
{
return p[0] | (p[1] << 8);
}
+unsigned short
+get_unaligned_16_be (unsigned char *p)
+{
+ return p[1] | (p[0] << 8);
+}
+
+
/* { dg-final { scan-tree-dump-times "16 bit load in target endianness found at" 4 "bswap" } } */
-/* { dg-final { scan-tree-dump-times "16 bit bswap implementation found at" 4 "bswap" } } */
+/* { dg-final { scan-tree-dump-times "16 bit bswap implementation found at" 5 "bswap" } } */