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
[ARM] Fix test armv8_2-fp16-move-1.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arm
/
fp16-inf.c
blob
ce5c197c12183e2b4e272adebac0d32caba5a3ba
1
/* { dg-do run } */
2
/* { dg-options "-O -mfp16-format=ieee" } */
3
4
/* Conversion of infinity to __fp16 and back again should preserve the
5
value. */
6
volatile
float
f
=
__builtin_inf
();
7
8
int
main
()
9
{
10
__fp16 h
=
f
;
11
if
(
h
!=
__builtin_inf
())
12
__builtin_abort
();
13
return
0
;
14
}