Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr90878.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=skylake" } */
3
4 union ieee754_float
5 {
6 float f;
7
8 struct
9 {
10 unsigned int mantissa:23;
11 unsigned int exponent:8;
12 unsigned int negative:1;
13 } ieee;
14 };
15
16 double
17 foo (float f)
18 {
19 union ieee754_float u;
20 u.f = f;
21 u.ieee.negative = 0;
22 return u.f;
23 }
24
25 /* { dg-final { scan-assembler-not "vcvtss2sd\[^\\n\]*\\\(%.sp\\\)" } } */