public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2800] Fix c6x test compromised by recent improvements to bswap & rotates
@ 2021-08-08 15:22 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2021-08-08 15:22 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:fd26ce83981c6b50519805500272ab26b4e4c4b0

commit r12-2800-gfd26ce83981c6b50519805500272ab26b4e4c4b0
Author: Jeff Law <jlaw@localhost.localdomain>
Date:   Sun Aug 8 11:20:41 2021 -0400

    Fix c6x test compromised by recent improvements to bswap & rotates
    
    gcc/testsuite
            * gcc.target/tic6x/rotdi16-scan.c: Pull rotate into its own function.

Diff:
---
 gcc/testsuite/gcc.target/tic6x/rotdi16-scan.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/tic6x/rotdi16-scan.c b/gcc/testsuite/gcc.target/tic6x/rotdi16-scan.c
index 4d7816c1537..550418324e6 100644
--- a/gcc/testsuite/gcc.target/tic6x/rotdi16-scan.c
+++ b/gcc/testsuite/gcc.target/tic6x/rotdi16-scan.c
@@ -7,10 +7,14 @@
 
 unsigned long long z = 0x012389ab4567cdefull;
 
+unsigned long long __attribute__ ((noinline,noclone,noipa)) bar ()
+{
+  return (z << 48) | (z >> 16);
+}
+
 int main ()
 {
-  unsigned long long z2 = (z << 48) | (z >> 16);
-  if (z2 != 0xcdef012389ab4567ull)
+  if (bar() != 0xcdef012389ab4567ull)
     abort ();
   exit (0);
 }


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

only message in thread, other threads:[~2021-08-08 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-08 15:22 [gcc r12-2800] Fix c6x test compromised by recent improvements to bswap & rotates Jeff Law

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