Skip to content

Commit 7eca5b6

Browse files
committed
enable AMX instruction tests in windows-gnu
1 parent 0d61ee3 commit 7eca5b6

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

  • crates/core_arch/src/x86_64

crates/core_arch/src/x86_64/amx.rs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ pub unsafe fn _tile_cmmrlfp16ps<const DST: i32, const A: i32, const B: i32>() {
252252
#[rustc_legacy_const_generics(0, 1, 2)]
253253
#[target_feature(enable = "amx-fp8")]
254254
#[cfg_attr(
255-
all(test, any(target_os = "linux", target_env = "msvc")),
255+
all(test, not(target_vendor = "apple")),
256256
assert_instr(tdpbf8ps, DST = 0, A = 1, B = 2)
257257
)]
258258
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -271,7 +271,7 @@ pub unsafe fn _tile_dpbf8ps<const DST: i32, const A: i32, const B: i32>() {
271271
#[rustc_legacy_const_generics(0, 1, 2)]
272272
#[target_feature(enable = "amx-fp8")]
273273
#[cfg_attr(
274-
all(test, any(target_os = "linux", target_env = "msvc")),
274+
all(test, not(target_vendor = "apple")),
275275
assert_instr(tdpbhf8ps, DST = 0, A = 1, B = 2)
276276
)]
277277
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -290,7 +290,7 @@ pub unsafe fn _tile_dpbhf8ps<const DST: i32, const A: i32, const B: i32>() {
290290
#[rustc_legacy_const_generics(0, 1, 2)]
291291
#[target_feature(enable = "amx-fp8")]
292292
#[cfg_attr(
293-
all(test, any(target_os = "linux", target_env = "msvc")),
293+
all(test, not(target_vendor = "apple")),
294294
assert_instr(tdphbf8ps, DST = 0, A = 1, B = 2)
295295
)]
296296
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -309,7 +309,7 @@ pub unsafe fn _tile_dphbf8ps<const DST: i32, const A: i32, const B: i32>() {
309309
#[rustc_legacy_const_generics(0, 1, 2)]
310310
#[target_feature(enable = "amx-fp8")]
311311
#[cfg_attr(
312-
all(test, any(target_os = "linux", target_env = "msvc")),
312+
all(test, not(target_vendor = "apple")),
313313
assert_instr(tdphf8ps, DST = 0, A = 1, B = 2)
314314
)]
315315
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -329,7 +329,7 @@ pub unsafe fn _tile_dphf8ps<const DST: i32, const A: i32, const B: i32>() {
329329
#[rustc_legacy_const_generics(0)]
330330
#[target_feature(enable = "amx-movrs")]
331331
#[cfg_attr(
332-
all(test, any(target_os = "linux", target_env = "msvc")),
332+
all(test, not(target_vendor = "apple")),
333333
assert_instr(tileloaddrs, DST = 0)
334334
)]
335335
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -349,7 +349,7 @@ pub unsafe fn _tile_loaddrs<const DST: i32>(base: *const u8, stride: usize) {
349349
#[rustc_legacy_const_generics(0)]
350350
#[target_feature(enable = "amx-movrs")]
351351
#[cfg_attr(
352-
all(test, any(target_os = "linux", target_env = "msvc")),
352+
all(test, not(target_vendor = "apple")),
353353
assert_instr(tileloaddrst1, DST = 0)
354354
)]
355355
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -372,7 +372,7 @@ pub unsafe fn _tile_stream_loaddrs<const DST: i32>(base: *const u8, stride: usiz
372372
#[rustc_legacy_const_generics(0, 1, 2)]
373373
#[target_feature(enable = "amx-tf32")]
374374
#[cfg_attr(
375-
all(test, any(target_os = "linux", target_env = "msvc")),
375+
all(test, not(target_vendor = "apple")),
376376
assert_instr(tmmultf32ps, DST = 0, A = 1, B = 2)
377377
)]
378378
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -389,7 +389,7 @@ pub unsafe fn _tile_mmultf32ps<const DST: i32, const A: i32, const B: i32>() {
389389
#[rustc_legacy_const_generics(0)]
390390
#[target_feature(enable = "amx-avx512,avx10.2")]
391391
#[cfg_attr(
392-
all(test, any(target_os = "linux", target_env = "msvc")),
392+
all(test, not(target_vendor = "apple")),
393393
assert_instr(tcvtrowd2ps, TILE = 0)
394394
)]
395395
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -404,7 +404,7 @@ pub unsafe fn _tile_cvtrowd2ps<const TILE: i32>(row: u32) -> __m512 {
404404
#[rustc_legacy_const_generics(0, 1)]
405405
#[target_feature(enable = "amx-avx512,avx10.2")]
406406
#[cfg_attr(
407-
all(test, any(target_os = "linux", target_env = "msvc")),
407+
all(test, not(target_vendor = "apple")),
408408
assert_instr(tcvtrowd2ps, TILE = 0, ROW = 0)
409409
)]
410410
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -421,7 +421,7 @@ pub unsafe fn _tile_cvtrowd2psi<const TILE: i32, const ROW: i32>() -> __m512 {
421421
#[rustc_legacy_const_generics(0)]
422422
#[target_feature(enable = "amx-avx512,avx10.2")]
423423
#[cfg_attr(
424-
all(test, any(target_os = "linux", target_env = "msvc")),
424+
all(test, not(target_vendor = "apple")),
425425
assert_instr(tcvtrowps2phh, TILE = 0)
426426
)]
427427
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -437,7 +437,7 @@ pub unsafe fn _tile_cvtrowps2phh<const TILE: i32>(row: u32) -> __m512h {
437437
#[rustc_legacy_const_generics(0, 1)]
438438
#[target_feature(enable = "amx-avx512,avx10.2")]
439439
#[cfg_attr(
440-
all(test, any(target_os = "linux", target_env = "msvc")),
440+
all(test, not(target_vendor = "apple")),
441441
assert_instr(tcvtrowps2phh, TILE = 0, ROW = 0)
442442
)]
443443
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -454,7 +454,7 @@ pub unsafe fn _tile_cvtrowps2phhi<const TILE: i32, const ROW: i32>() -> __m512h
454454
#[rustc_legacy_const_generics(0)]
455455
#[target_feature(enable = "amx-avx512,avx10.2")]
456456
#[cfg_attr(
457-
all(test, any(target_os = "linux", target_env = "msvc")),
457+
all(test, not(target_vendor = "apple")),
458458
assert_instr(tcvtrowps2phl, TILE = 0)
459459
)]
460460
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -470,7 +470,7 @@ pub unsafe fn _tile_cvtrowps2phl<const TILE: i32>(row: u32) -> __m512h {
470470
#[rustc_legacy_const_generics(0, 1)]
471471
#[target_feature(enable = "amx-avx512,avx10.2")]
472472
#[cfg_attr(
473-
all(test, any(target_os = "linux", target_env = "msvc")),
473+
all(test, not(target_vendor = "apple")),
474474
assert_instr(tcvtrowps2phl, TILE = 0, ROW = 0)
475475
)]
476476
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -487,7 +487,7 @@ pub unsafe fn _tile_cvtrowps2phli<const TILE: i32, const ROW: i32>() -> __m512h
487487
#[rustc_legacy_const_generics(0)]
488488
#[target_feature(enable = "amx-avx512,avx10.2")]
489489
#[cfg_attr(
490-
all(test, any(target_os = "linux", target_env = "msvc")),
490+
all(test, not(target_vendor = "apple")),
491491
assert_instr(tcvtrowps2bf16h, TILE = 0)
492492
)]
493493
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -503,7 +503,7 @@ pub unsafe fn _tile_cvtrowps2bf16h<const TILE: i32>(row: u32) -> __m512bh {
503503
#[rustc_legacy_const_generics(0, 1)]
504504
#[target_feature(enable = "amx-avx512,avx10.2")]
505505
#[cfg_attr(
506-
all(test, any(target_os = "linux", target_env = "msvc")),
506+
all(test, not(target_vendor = "apple")),
507507
assert_instr(tcvtrowps2bf16h, TILE = 0, ROW = 0)
508508
)]
509509
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -520,7 +520,7 @@ pub unsafe fn _tile_cvtrowps2bf16hi<const TILE: i32, const ROW: i32>() -> __m512
520520
#[rustc_legacy_const_generics(0)]
521521
#[target_feature(enable = "amx-avx512,avx10.2")]
522522
#[cfg_attr(
523-
all(test, any(target_os = "linux", target_env = "msvc")),
523+
all(test, not(target_vendor = "apple")),
524524
assert_instr(tcvtrowps2bf16l, TILE = 0)
525525
)]
526526
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -536,7 +536,7 @@ pub unsafe fn _tile_cvtrowps2bf16l<const TILE: i32>(row: u32) -> __m512bh {
536536
#[rustc_legacy_const_generics(0, 1)]
537537
#[target_feature(enable = "amx-avx512,avx10.2")]
538538
#[cfg_attr(
539-
all(test, any(target_os = "linux", target_env = "msvc")),
539+
all(test, not(target_vendor = "apple")),
540540
assert_instr(tcvtrowps2bf16l, TILE = 0, ROW = 0)
541541
)]
542542
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -551,7 +551,7 @@ pub unsafe fn _tile_cvtrowps2bf16li<const TILE: i32, const ROW: i32>() -> __m512
551551
#[rustc_legacy_const_generics(0)]
552552
#[target_feature(enable = "amx-avx512,avx10.2")]
553553
#[cfg_attr(
554-
all(test, any(target_os = "linux", target_env = "msvc")),
554+
all(test, not(target_vendor = "apple")),
555555
assert_instr(tilemovrow, TILE = 0)
556556
)]
557557
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]
@@ -565,7 +565,7 @@ pub unsafe fn _tile_movrow<const TILE: i32>(row: u32) -> __m512i {
565565
#[rustc_legacy_const_generics(0, 1)]
566566
#[target_feature(enable = "amx-avx512,avx10.2")]
567567
#[cfg_attr(
568-
all(test, any(target_os = "linux", target_env = "msvc")),
568+
all(test, not(target_vendor = "apple")),
569569
assert_instr(tilemovrow, TILE = 0, ROW = 0)
570570
)]
571571
#[unstable(feature = "x86_amx_intrinsics", issue = "126622")]

0 commit comments

Comments
 (0)