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