OLD | NEW |
1 /* { dg-do run } */ | 1 /* { dg-do run } */ |
2 /* { dg-require-effective-target sse4 } */ | 2 /* { dg-require-effective-target sse4 } */ |
3 /* { dg-options "-O2 -msse4.1" } */ | 3 /* { dg-options "-O2 -msse4.1" } */ |
| 4 /* { dg-skip-if "no M_PI" { vxworks_kernel } } */ |
4 | 5 |
5 #include "sse4_1-check.h" | 6 #include "sse4_1-check.h" |
6 | 7 |
7 #include <smmintrin.h> | 8 #include <smmintrin.h> |
8 #include <math.h> | 9 #include <math.h> |
9 #include <string.h> | 10 #include <string.h> |
10 | 11 |
11 #define NUM 64 | 12 #define NUM 64 |
12 | 13 |
13 static void | 14 static void |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 for (i = 0; i < NUM; i += 2) | 83 for (i = 0; i < NUM; i += 2) |
83 { | 84 { |
84 if (dst.d[i + 1] != 0.0) | 85 if (dst.d[i + 1] != 0.0) |
85 abort (); | 86 abort (); |
86 | 87 |
87 f = do_round (src.d[i], 0x03); | 88 f = do_round (src.d[i], 0x03); |
88 if (f != dst.d[i]) | 89 if (f != dst.d[i]) |
89 abort (); | 90 abort (); |
90 } | 91 } |
91 } | 92 } |
OLD | NEW |