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
[testsuite] require sqrt_insn effective target where needed
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
powerpc
/
pr70010-3.c
blob
9fd97d10074a67ffa81c7d97d43f1588c250e684
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -maltivec -mno-vsx" } */
3
/* { dg-require-effective-target powerpc_altivec_ok } */
4
5
vector
int
c
,
a
,
b
;
6
7
static
inline
void
__attribute__
((
__always_inline__
,
target
(
"no-vsx"
)))
8
foo
()
9
{
10
c
=
a
+
b
;
11
}
12
13
int
14
main
()
15
{
16
foo
();
17
c
=
a
+
b
;
18
}