gcc/testsuite/gcc.target/i386/pr101282.c
raw| 1 | /* { dg-do run { target { ia32 } } } */ |
| 2 | /* { dg-options "-Os -march=i686 -mfpmath=sse -msse2" } */ |
| 3 | |
| 4 | #include<stdlib.h> |
| 5 | int |
| 6 | main (void) |
| 7 | { |
| 8 | static volatile unsigned int ivin, ivout; |
| 9 | static volatile _Float16 fv1, fv2; |
| 10 | ivin = ((unsigned int)1); |
| 11 | fv1 = ((unsigned int)1); |
| 12 | fv2 = ivin; |
| 13 | ivout = fv2; |
| 14 | if (ivout != ((unsigned int)1)) |
| 15 | abort (); |
| 16 | |
| 17 | exit (0); |
| 18 | } |