Fix c6x test compromised by recent improvements to bswap & rotates

gcc/testsuite
	* gcc.target/tic6x/rotdi16-scan.c: Pull rotate into its own function.
This commit is contained in:
Jeff Law 2021-08-08 11:20:41 -04:00
parent e9b639c4b5
commit fd26ce8398

View file

@ -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);
}