File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
// Run a variety of targets to ensure there's no target-based difference.
7
7
8
- // The builtin always produces a 64-bit (double).
9
8
// An SNaN with no payload is formed by setting the bit after the
10
9
// the quiet bit (MSB of the significand).
11
10
12
11
// CHECK: float 0x7FF8000000000000, float 0x7FF4000000000000
13
- // CHECK: double 0x7FF8000000000000, double 0x7FF4000000000000
14
12
15
13
float f [] = {
14
+ __builtin_nanf ("" ),
15
+ __builtin_nansf ("" ),
16
+ };
17
+
18
+
19
+ // Doubles are created and converted to floats.
20
+
21
+ // CHECK: float 0x7FF8000000000000, float 0x7FF4000000000000
22
+
23
+ float converted_to_float [] = {
16
24
__builtin_nan ("" ),
17
25
__builtin_nans ("" ),
18
26
};
19
27
28
+ // CHECK: double 0x7FF8000000000000, double 0x7FF4000000000000
29
+
20
30
double d [] = {
21
31
__builtin_nan ("" ),
22
32
__builtin_nans ("" ),
You can’t perform that action at this time.
0 commit comments