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
Fortran: fix dependency checks for inquiry refs [PR115039]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
nvptx
/
float16-2.c
blob
e15b685253bae501bfe0608dbdf885dd4465c07d
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -ffast-math -misa=sm_80 -mptx=_" } */
3
/* { dg-additional-options "-mexperimental" } */
4
5
_Float16 x
;
6
_Float16 y
;
7
_Float16 t
;
8
9
void
foo
()
10
{
11
t
=
x
<
y
?
x
:
y
;
12
}
13
14
void
bar
()
15
{
16
t
=
x
>
y
?
x
:
y
;
17
}
18
19
/* { dg-final { scan-assembler "min.f16" } } */
20
/* { dg-final { scan-assembler "max.f16" } } */
21