Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / powerpc / rs6000-power2-2.c
blob88a243f59da265c4870eb9ccdb9014acd558c3aa
1 /* { dg-do compile { target { ilp32 } } } */
2 /* { dg-options "-O3 -mcpu=power2 -fno-schedule-insns -w -mhard-float" } */
3 /* { dg-final { scan-assembler-not "lfd" } } */
4 /* { dg-final { scan-assembler-not "sfd" } } */
5 /* { dg-final { scan-assembler "lfq" } } */
6 /* { dg-final { scan-assembler "stfq" } } */
8 register volatile double t1 __asm__("fr0");
9 register volatile double t2 __asm__("fr1");
10 register volatile double t3 __asm__("fr2"), t4 __asm__("fr3");
11 void t(double *a, double *b)
13 t1 = a[-1];
14 t2 = a[0];
15 t3 = a[1];
16 t4 = a[2];
17 b[-1] = t1;
18 b[0] = t2;
19 b[1] = t3;
20 b[2] = t4;