Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.c-torture / execute / 20021024-1.c
blobf7d98e929a26fbdd1b819caa1c287193379355bf
1 /* Origin: PR target/6981 from Mattias Engdegaard <mattias@virtutech.se>. */
3 void exit (int);
4 void abort (void);
6 unsigned long long *cp, m;
8 void foo (void)
12 void bar (unsigned rop, unsigned long long *r)
14 unsigned rs1, rs2, rd;
16 top:
17 rs2 = (rop >> 23) & 0x1ff;
18 rs1 = (rop >> 9) & 0x1ff;
19 rd = rop & 0x1ff;
21 *cp = 1;
22 m = r[rs1] + r[rs2];
23 *cp = 2;
24 foo();
25 if (!rd)
26 goto top;
27 r[rd] = 1;
30 int main(void)
32 static unsigned long long r[64];
33 unsigned long long cr;
34 cp = &cr;
36 r[4] = 47;
37 r[8] = 11;
38 bar((8 << 23) | (4 << 9) | 15, r);
40 if (m != 47 + 11)
41 abort ();
42 exit (0);