public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix PR93216
@ 2020-01-10  8:42 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2020-01-10  8:42 UTC (permalink / raw)
  To: gcc-patches


Committed.

Richard.

2010-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.

Index: gcc/testsuite/gcc.dg/optimize-bswaphi-1.c
===================================================================
--- gcc/testsuite/gcc.dg/optimize-bswaphi-1.c	(revision 280046)
+++ gcc/testsuite/gcc.dg/optimize-bswaphi-1.c	(working copy)
@@ -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" } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-10  8:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10  8:42 [PATCH] Fix PR93216 Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).