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
[PR target/115123] Fix testsuite fallout from sinking heuristic change
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
dfp
/
pr97439.c
blob
c651ec22e4314db74f93813cc67e7df071d59f95
1
// { dg-options "-O1" }
2
3
static int
4
foo
(
_Decimal128 x
,
_Decimal128 y
)
5
{
6
if
(
x
>
y
)
7
return
1
;
8
9
return
0
;
10
}
11
12
int
__attribute__
((
noinline
))
13
bar
(
_Decimal128 x
)
14
{
15
return
foo
(
x
, -
1.0
DL
*
__builtin_infd32
());
16
}
17
18
int
19
main
(
void
)
20
{
21
int
res
=
bar
(
0.0
DL
);
22
if
(
res
!=
1
)
23
__builtin_abort
();
24
25
return
0
;
26
}