Debian Codegraph @

gcc/testsuite/g++.dg/ext/vector14.C

raw
1 // PR c++/35758
2 // { dg-do compile }
3 // { dg-options "-msse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
4 // { dg-require-effective-target sse }
5 // Ignore warning on some powerpc-linux configurations.
6 // { dg-prune-output "non-standard ABI extension" }
7 // { dg-prune-output "mangled name" }
8
9 #define vector __attribute__((vector_size(16)))
10
11 template<int N> vector signed int foo (vector float value)
12 {
13 vector signed int a;
14 return a;
15 }
16
17 template<int> void foo (float) {}
18
19 int
20 main ()
21 {
22 vector float v;
23 float f;
24 foo<1> (v);
25 foo<1> (f);
26
27 return 0;
28 }