Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / longlong.c
blob56f1d8eab107ca7506e77fe9d2f46e8636236490
1 /* Source: PR 321 modified for test suite by Neil Booth 14 Jan 2001. */
3 typedef unsigned long long uint64;
4 unsigned long pars;
6 uint64 b[32];
7 uint64 *r = b;
9 void alpha_ep_extbl_i_eq_0()
11 unsigned int rb, ra, rc;
13 rb = (((unsigned long)(pars) >> 27)) & 0x1fUL;
14 ra = (((unsigned int)(pars) >> 5)) & 0x1fUL;
15 rc = (((unsigned int)(pars) >> 0)) & 0x1fUL;
17 uint64 temp = ((r[ra] >> ((r[rb] & 0x7) << 3)) & 0x00000000000000FFLL);
18 if (rc != 31)
19 r[rc] = temp;
23 int
24 main(void)
26 if (sizeof (uint64) == 8)
28 b[17] = 0x0000000000303882ULL; /* rb */
29 b[2] = 0x534f4f4c494d000aULL; /* ra & rc */
31 pars = 0x88000042; /* 17, 2, 2 coded */
32 alpha_ep_extbl_i_eq_0();
34 if (b[2] != 0x4d)
35 abort ();
38 exit (0);