3 extern void abort (void);
6 foo (int *out
, const int *lp
, unsigned samples
)
9 for (x
= 0, target
= 0; x
< (int)samples
; x
+= 2, target
++)
12 out
[x
- 1] = out
[x
- 2] + out
[x
];
17 foo_novec (int *out
, const int *lp
, unsigned samples
)
20 for (x
= 0, target
= 0; x
< (int)samples
; x
+= 2, target
++)
23 out
[x
- 1] = out
[x
- 2] + out
[x
];
24 __asm__
volatile ("" : : : "memory");
44 foo (out
+ 2, lp
+ 1, 48);
45 foo_novec (out2
+ 2, lp
+ 1, 48);
48 for (s
= 0; s
< 49; s
++)
49 if (out
[s
] != out2
[s
])