gcc/testsuite/g++.target/i386/vec-tmpl1.C
raw| 1 | // PR c++/65211 |
| 2 | // { dg-additional-options "-Wno-psabi" } |
| 3 | // { dg-final { scan-assembler-not "movdqa" } } |
| 4 | |
| 5 | typedef unsigned v4ui __attribute__ ((vector_size(16), aligned (16))); |
| 6 | |
| 7 | template<int I> |
| 8 | static v4ui t1(unsigned *dest_data) |
| 9 | { |
| 10 | typedef unsigned v4ui_1 __attribute__ ((vector_size (16), aligned (4))); |
| 11 | return ((const v4ui_1*)dest_data)[0]; |
| 12 | } |
| 13 | |
| 14 | v4ui f(unsigned int *array) |
| 15 | { |
| 16 | return t1<1>(array+7); |
| 17 | } |