diff --git a/tests/assembly/simd-intrinsic-mask-reduce.rs b/tests/assembly/simd-intrinsic-mask-reduce.rs index 78e66adf0a46..b80af1141cc5 100644 --- a/tests/assembly/simd-intrinsic-mask-reduce.rs +++ b/tests/assembly/simd-intrinsic-mask-reduce.rs @@ -1,14 +1,14 @@ // verify that simd mask reductions do not introduce additional bit shift operations -// revisions: x86 aarch64 -// [x86] compile-flags: --target=x86_64-unknown-linux-gnu -C llvm-args=-x86-asm-syntax=intel -// [x86] needs-llvm-components: x86 -// [aarch64] compile-flags: --target=aarch64-unknown-linux-gnu -// [aarch64] needs-llvm-components: aarch64 -// [aarch64] min-llvm-version: 15.0 -// assembly-output: emit-asm -// compile-flags: --crate-type=lib -O +//@ revisions: x86 aarch64 +//@ [x86] compile-flags: --target=x86_64-unknown-linux-gnu -C llvm-args=-x86-asm-syntax=intel +//@ [x86] needs-llvm-components: x86 +//@ [aarch64] compile-flags: --target=aarch64-unknown-linux-gnu +//@ [aarch64] needs-llvm-components: aarch64 +//@ [aarch64] min-llvm-version: 15.0 +//@ assembly-output: emit-asm +//@ compile-flags: --crate-type=lib -O -#![feature(no_core, lang_items, repr_simd, platform_intrinsics)] +#![feature(no_core, lang_items, repr_simd, intrinsics)] #![no_core] #![allow(non_camel_case_types)] @@ -22,7 +22,7 @@ trait Copy {} #[repr(simd)] pub struct mask8x16([i8; 16]); -extern "platform-intrinsic" { +extern "rust-intrinsic" { fn simd_reduce_all<T>(x: T) -> bool; fn simd_reduce_any<T>(x: T) -> bool; } @@ -32,7 +32,7 @@ extern "platform-intrinsic" { pub unsafe fn mask_reduce_all(m: mask8x16) -> bool { // x86: movdqa // x86-NEXT: pmovmskb - // aarch64: cmgt + // aarch64: cmge // aarch64-NEXT: umaxv simd_reduce_all(m) } diff --git a/tests/codegen/simd-intrinsic/simd-intrinsic-mask-reduce.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-mask-reduce.rs index 4f78e155fc62..d50194d8fa2a 100644 --- a/tests/codegen/simd-intrinsic/simd-intrinsic-mask-reduce.rs +++ b/tests/codegen/simd-intrinsic/simd-intrinsic-mask-reduce.rs @@ -1,8 +1,8 @@ -// compile-flags: -C no-prepopulate-passes +//@ compile-flags: -C no-prepopulate-passes // #![crate_type = "lib"] -#![feature(repr_simd, platform_intrinsics)] +#![feature(repr_simd, intrinsics)] #![allow(non_camel_case_types)] #[repr(simd)] @@ -13,7 +13,7 @@ pub struct mask32x2(i32, i32); #[derive(Copy, Clone)] pub struct mask8x16(i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8); -extern "platform-intrinsic" { +extern "rust-intrinsic" { fn simd_reduce_all<T>(x: T) -> bool; fn simd_reduce_any<T>(x: T) -> bool; }