Skip to content

Commit 2abd0f0

Browse files
committed
Update codegen tests
1 parent 8345b0c commit 2abd0f0

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tests/assembly/simd-intrinsic-mask-reduce.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// verify that simd mask reductions do not introduce additional bit shift operations
2-
// revisions: x86 aarch64
3-
// [x86] compile-flags: --target=x86_64-unknown-linux-gnu -C llvm-args=-x86-asm-syntax=intel
4-
// [x86] needs-llvm-components: x86
5-
// [aarch64] compile-flags: --target=aarch64-unknown-linux-gnu
6-
// [aarch64] needs-llvm-components: aarch64
7-
// [aarch64] min-llvm-version: 15.0
8-
// assembly-output: emit-asm
9-
// compile-flags: --crate-type=lib -O
2+
//@ revisions: x86 aarch64
3+
//@ [x86] compile-flags: --target=x86_64-unknown-linux-gnu -C llvm-args=-x86-asm-syntax=intel
4+
//@ [x86] needs-llvm-components: x86
5+
//@ [aarch64] compile-flags: --target=aarch64-unknown-linux-gnu
6+
//@ [aarch64] needs-llvm-components: aarch64
7+
//@ [aarch64] min-llvm-version: 15.0
8+
//@ assembly-output: emit-asm
9+
//@ compile-flags: --crate-type=lib -O
1010

11-
#![feature(no_core, lang_items, repr_simd, platform_intrinsics)]
11+
#![feature(no_core, lang_items, repr_simd, intrinsics)]
1212
#![no_core]
1313
#![allow(non_camel_case_types)]
1414

@@ -22,7 +22,7 @@ trait Copy {}
2222
#[repr(simd)]
2323
pub struct mask8x16([i8; 16]);
2424

25-
extern "platform-intrinsic" {
25+
extern "rust-intrinsic" {
2626
fn simd_reduce_all<T>(x: T) -> bool;
2727
fn simd_reduce_any<T>(x: T) -> bool;
2828
}
@@ -32,7 +32,7 @@ extern "platform-intrinsic" {
3232
pub unsafe fn mask_reduce_all(m: mask8x16) -> bool {
3333
// x86: movdqa
3434
// x86-NEXT: pmovmskb
35-
// aarch64: cmgt
35+
// aarch64: cmge
3636
// aarch64-NEXT: umaxv
3737
simd_reduce_all(m)
3838
}

tests/codegen/simd-intrinsic/simd-intrinsic-mask-reduce.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// compile-flags: -C no-prepopulate-passes
1+
//@ compile-flags: -C no-prepopulate-passes
22
//
33

44
#![crate_type = "lib"]
5-
#![feature(repr_simd, platform_intrinsics)]
5+
#![feature(repr_simd, intrinsics)]
66
#![allow(non_camel_case_types)]
77

88
#[repr(simd)]
@@ -13,7 +13,7 @@ pub struct mask32x2(i32, i32);
1313
#[derive(Copy, Clone)]
1414
pub struct mask8x16(i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8);
1515

16-
extern "platform-intrinsic" {
16+
extern "rust-intrinsic" {
1717
fn simd_reduce_all<T>(x: T) -> bool;
1818
fn simd_reduce_any<T>(x: T) -> bool;
1919
}

0 commit comments

Comments
 (0)