2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / pfpo.c
blob32725c991a62f935c9357c002d089509eaf73251
1 /* The pfpo instruction generated by this code clobbers the r1 register while
2 it was still in use. */
4 /* { dg-do run } */
5 /* { dg-options "-O0 -march=z10 -mzarch" } */
7 int foo(int x)
9 return x;
12 int bar(int i, float f)
14 return i;
17 int main()
19 _Decimal32 d = 7;
20 return bar(foo(0x10203040), (float)d) == 0x10203040 ? 0 : 1;