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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vec-andxor1.c
blob
4aa454e663bcdbdf803ce66c69e7a5bb845d9348
1
/* { dg-do run } */
2
/* { dg-options "-O" } */
3
4
typedef
int
vec
__attribute__
((
vector_size
(
4
*
sizeof
(
int
))));
5
6
__attribute__
((
noinline
,
noclone
))
7
void
f
(
vec
*
x
) {
8
*
x
= (*
x
&
1
) ^
1
;
9
}
10
11
int
main
() {
12
vec x
= {
1
,
2
,
3
,
4
};
13
f
(&
x
);
14
if
(
x
[
0
] !=
0
||
x
[
1
] !=
1
)
15
__builtin_abort
();
16
return
0
;
17
}