Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / 20001102-1.c
blobc976dad45b251dfc7891d01f5a994bd49e824803
1 /* { dg-do run { target sparc*-*-* } } */
2 /* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */
4 extern void abort (void);
5 extern void exit (int);
7 int foo(double a, int b, int c, double *d, int h)
9 int f, g;
10 double e;
13 f = (int) a;
14 a -= (double) f;
15 if (b == 1)
17 g = c;
18 f += g;
19 c -= g;
21 if (b == 2)
23 f++;
24 h = c;
25 goto l;
28 asm volatile ("" : : :
29 "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7",
30 "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15",
31 "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23",
32 "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31");
34 return f & 7;
37 int main()
39 if (foo(0.1, 1, 3, 0, 1) != 3)
40 abort ();
41 exit (0);