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
2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr48678.c
blob
6f6727fffa2a6beb437ce3302e028a3aee3d0b02
1
/* PR target/48678 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -msse2" } */
4
5
#include <emmintrin.h>
6
7
typedef
short
T
__attribute__
((
may_alias
));
8
struct
S
{
__m128i d
; };
9
10
__m128i
11
foo
(
short
*
x
,
struct
S
*
y
,
__m128i
*
z
)
12
{
13
struct
S s
= *
y
;
14
((
T
*) &
s
.
d
)[
0
] = *
x
;
15
return
_mm_cmpeq_epi16
(
s
.
d
, *
z
);
16
}