Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / dfp-conv1.c
blob3c553a3406e03c7cbed070d7f7ceed3fdfe71ef9
1 /* We do not have hardware instructions which do a direct conversion
2 between the 32 and 128 bit DFP types. But we can easily do it in
3 two steps. Older libdfp implementations require this not to call
4 into a lib in order to prevent an endless loop. */
6 /* { dg-do compile } */
7 /* { dg-options "-O3 -march=z10 -mzarch" } */
9 _Decimal32
10 foo (_Decimal128 a)
12 return (_Decimal32)a;
15 _Decimal128
16 bar (_Decimal32 a)
18 return (_Decimal128)a;
21 /* Make sure no library call is emitted. */
22 /* { dg-final { scan-assembler-not "brasl" } } */