[Vax testsuite] Fixup to revision 224672, add missing testcase.

Add missing testcase from r224672.
	2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>

	* gcc.target/vax/bswapdi-1.c: New.

From-SVN: r224832
This commit is contained in:
James Greenhalgh 2015-06-23 10:06:01 +00:00 committed by James Greenhalgh
parent 76540ac3e3
commit 7b91cc91f2
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2015-06-23 James Greenhalgh <james.greenhalgh@arm.com>
Add missing testcase from r224672.
2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
* gcc.target/vax/bswapdi-1.c: New.
2015-06-23 Andre Vehreschild <vehre@gmx.de>
PR fortran/64674

View File

@ -0,0 +1,13 @@
typedef int DItype __attribute__ ((mode (DI)));
DItype
__bswapdi2 (DItype u)
{
return ((((u) & 0xff00000000000000ull) >> 56)
| (((u) & 0x00ff000000000000ull) >> 40)
| (((u) & 0x0000ff0000000000ull) >> 24)
| (((u) & 0x000000ff00000000ull) >> 8)
| (((u) & 0x00000000ff000000ull) << 8)
| (((u) & 0x0000000000ff0000ull) << 24)
| (((u) & 0x000000000000ff00ull) << 40)
| (((u) & 0x00000000000000ffull) << 56));
}