| 313 | pass |
| 314 | |
| 315 | def test_skip(self): |
| 316 | # only takes what platform supports and skip the others |
| 317 | # without casing exceptions |
| 318 | self.expect( |
| 319 | "sse vsx neon", |
| 320 | x86="sse", ppc64="vsx", armhf="neon", unknown="" |
| 321 | ) |
| 322 | self.expect( |
| 323 | "sse41 avx avx2 vsx2 vsx3 neon_vfpv4 asimd", |
| 324 | x86 = "sse41 avx avx2", |
| 325 | ppc64 = "vsx2 vsx3", |
| 326 | armhf = "neon_vfpv4 asimd", |
| 327 | unknown = "" |
| 328 | ) |
| 329 | # any features in cpu_dispatch must be ignored if it's part of baseline |
| 330 | self.expect( |
| 331 | "sse neon vsx", baseline="sse neon vsx", |
| 332 | x86="", ppc64="", armhf="" |
| 333 | ) |
| 334 | self.expect( |
| 335 | "avx2 vsx3 asimdhp", baseline="avx2 vsx3 asimdhp", |
| 336 | x86="", ppc64="", armhf="" |
| 337 | ) |
| 338 | |
| 339 | def test_implies(self): |
| 340 | # baseline combining implied features, so we count |