1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512f -mfpmath=sse" } */
3 
ui2f(unsigned int x)4 float ui2f (unsigned int x) { return x; }
ui2d(unsigned int x)5 double ui2d (unsigned int x) { return x; }
6 
7 #ifdef __x86_64__
ul2f(unsigned long x)8 float ul2f (unsigned long x) { return x; }
ul2d(unsigned long x)9 double ul2d (unsigned long x) { return x; }
10 #endif
11 
12 /* { dg-final { scan-assembler-times "vcvtusi2ss" 1 { target ia32 } } } */
13 /* { dg-final { scan-assembler-times "vcvtusi2sd" 1 { target ia32 } } } */
14 /* { dg-final { scan-assembler-times "vcvtusi2ss" 2 { target { ! ia32 } } } } */
15 /* { dg-final { scan-assembler-times "vcvtusi2sd" 2 { target { ! ia32 } } } } */
16