Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr98309-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2 -mfpmath=sse -ffast-math" } */
3 /* { dg-final { scan-assembler-times "vcvtsi2s\[sd\]" "2" } } */
4 /* { dg-final { scan-assembler-times "vscalefs\[sd\]" "2" } } */
5
6 double
7 __attribute__((noipa))
8 foo (double a, int b)
9 {
10 return __builtin_ldexp (a, b);
11 }
12
13 float
14 __attribute__((noipa))
15 foo2 (float a, int b)
16 {
17 return __builtin_ldexpf (a, b);
18 }