diff options
author | Jeff Law <jlaw@localhost.localdomain> | 2021-08-08 11:20:41 -0400 |
---|---|---|
committer | Jeff Law <jlaw@localhost.localdomain> | 2021-08-08 11:20:41 -0400 |
commit | fd26ce83981c6b50519805500272ab26b4e4c4b0 (patch) | |
tree | baf500d5efe7cb5ef770e6a9cb14180a45a32896 /gcc | |
parent | e9b639c4b532212ca92b2261f820768993770daa (diff) | |
download | gcc-fd26ce83981c6b50519805500272ab26b4e4c4b0.zip gcc-fd26ce83981c6b50519805500272ab26b4e4c4b0.tar.gz gcc-fd26ce83981c6b50519805500272ab26b4e4c4b0.tar.bz2 |
Fix c6x test compromised by recent improvements to bswap & rotates
gcc/testsuite
* gcc.target/tic6x/rotdi16-scan.c: Pull rotate into its own function.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.target/tic6x/rotdi16-scan.c | 8 |
1 files 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 4d7816c..5504183 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); } |