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
i386: Add -mveclibabi=aocl [PR56504]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
avx-vbroadcastss-2.c
blob
56723cb282ec21c1429ef7825c4e1e4fd959c56f
1
/* { dg-do run } */
2
/* { dg-require-effective-target avx } */
3
/* { dg-options "-O2 -mavx" } */
4
5
#include
"avx-check.h"
6
7
void static
8
avx_test
(
void
)
9
{
10
int
i
;
11
float
s
=
39678.3452
;
12
union128 u
;
13
float
e
[
4
];
14
15
u
.
x
=
_mm_broadcast_ss
(&
s
);
16
17
for
(
i
=
0
;
i
<
4
;
i
++)
18
e
[
i
] =
s
;
19
20
if
(
check_union128
(
u
,
e
))
21
abort
();
22
}