| 1 |
/* Test that we generate aligned load when memory is aligned. */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-O -mavx -mtune=generic" } */ |
| 4 |
/* { dg-final { scan-assembler-not "movups" } } */ |
| 5 |
/* { dg-final { scan-assembler "movaps" } } */ |
| 6 |
|
| 7 |
typedef float v8sf __attribute__ ((__vector_size__ (32))); |
| 8 |
|
| 9 |
extern void foo (v8sf, v8sf, v8sf, v8sf, v8sf, v8sf, v8sf, v8sf, v8sf); |
| 10 |
|
| 11 |
int |
| 12 |
test (void) |
| 13 |
{ |
| 14 |
v8sf x = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 }; |
| 15 |
|
| 16 |
foo (x, x, x, x, x, x, x, x, x); |
| 17 |
return 0; |
| 18 |
} |