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
2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
sse2-movd-2.c
blob
f986e6e255848cc8796126f929f0d71ab0069ecf
1
/* { dg-do run } */
2
/* { dg-options "-O2 -msse2" } */
3
4
#ifndef CHECK_H
5
#define CHECK_H
"sse2-check.h"
6
#endif
7
8
#ifndef TEST
9
#define TEST sse2_test
10
#endif
11
12
#include CHECK_H
13
14
#include <emmintrin.h>
15
16
static int
17
__attribute__
((
noinline
,
unused
))
18
test
(
__m128i b
)
19
{
20
return
_mm_cvtsi128_si32
(
b
);
21
}
22
23
static void
24
TEST
(
void
)
25
{
26
union128i_d u
;
27
int
e
;
28
29
u
.
x
=
_mm_set_epi32
(
2134
, -
128
,
655366
,
9999
);
30
e
=
test
(
u
.
x
);
31
if
(
e
!=
u
.
a
[
0
])
32
abort
();
33
}