| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O -mavx -fno-omit-frame-pointer" } */ |
| 3 |
|
| 4 |
typedef unsigned long long int u64 __attribute__ ((aligned(64))); |
| 5 |
|
| 6 |
void |
| 7 |
#ifndef __x86_64__ |
| 8 |
__attribute__((regparm(3))) |
| 9 |
#endif |
| 10 |
foo (u64 *idx, unsigned int *out_start, unsigned int *out_end, |
| 11 |
unsigned int *regions) |
| 12 |
{ |
| 13 |
if (*idx < 20 ) { |
| 14 |
unsigned int base = regions[*idx]; |
| 15 |
*out_start = base; |
| 16 |
*out_end = base; |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
/* Verify no dynamic realignment is performed. */ |
| 21 |
/* { dg-final { scan-assembler-not "and\[^\n\r]*sp" } } */ |