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 GENERIC and GIMPLE folders of __builtin_ia32_{min,max}* [PR116738]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
intrinsics_opt-2.c
blob
fb87be8cc16638c21582a0380c6534ae39410486
1
/* { dg-do compile } */
2
/* { dg-options "-O -ffast-math -msse2 -fdump-tree-optimized" } */
3
4
#include <emmintrin.h>
5
6
int
f
(
__m128d x
){
7
x
=
_mm_sub_pd
(
x
,
x
);
8
x
=
_mm_mul_pd
(
x
,
x
);
9
double
r
=
42
;
10
_mm_storeh_pd
(&
r
,
x
);
11
int
z
=
r
==
0
;
12
return
__builtin_constant_p
(
z
) &&
z
;
13
}
14
15
/* { dg-final { scan-tree-dump "return 1;" "optimized" } } */