repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2016-09-26 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
simd2.C
blob
873e707e0036f6eb988111dcca98b7888c445305
1
/* { dg-do compile } */
2
3
/* Test generic operations on vectors. */
4
5
int __attribute__((vector_size(16))) a, b, c;
6
int __attribute__((vector_size(8))) d;
7
void foo()
8
{
9
a = b ^ c;
10
a = b + c;
11
a = b - c;
12
a = b * c;
13
a = b / c;
14
a = -b;
15
a = d + b; /* { dg-error "invalid operands to binary +" } */
16
}