re PR testsuite/93216 (gcc.dg/optimize-bswaphi-1.c fails starting with r280034)
authorRichard Biener <rguenther@suse.de>
Fri, 10 Jan 2020 08:18:09 +0000 (08:18 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 10 Jan 2020 08:18:09 +0000 (08:18 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/optimize-bswaphi-1.c

index 0c1dee3497a29ea65e19959a5da6b5f8a79e47e1..0c9408eba1237ad9367816a422432594f994e325 100644 (file)
@@ -1,3 +1,9 @@
+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
index e9338d67872d6d49c88000f353cc86526ecfc133..d045da9ea8040dfebdcb0ba179aacbfb262504e2 100644 (file)
@@ -55,10 +55,17 @@ swap16 (HItype in)
 }
 
 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" } } */