Skip to content

Commit 5e0bdaa

Browse files
committed
2 parents 321dde1 + fbc15c1 commit 5e0bdaa

File tree

9 files changed

+10
-18
lines changed

9 files changed

+10
-18
lines changed

compiler/rustc_codegen_cranelift/example/neon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ unsafe fn test_vaddvq_f32() {
233233

234234
#[cfg(target_arch = "aarch64")]
235235
unsafe fn test_vrndnq_f32() {
236-
// AArch64 llvm intrinsic: llvm.aarch64.neon.frintn.v4f32
236+
// llvm intrinsic: llvm.roundeven.v4f32
237237
let a = f32x4::from([0.1, -1.9, 4.5, 5.5]);
238238
let e = f32x4::from([0., -2., 4., 6.]);
239239
let r: f32x4 = transmute(vrndnq_f32(transmute(a)));

compiler/rustc_codegen_cranelift/src/intrinsics/llvm.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ pub(crate) fn codegen_llvm_intrinsic_call<'tcx>(
6262
});
6363
}
6464

65+
_ if intrinsic.starts_with("llvm.roundeven.v") => {
66+
intrinsic_args!(fx, args => (v); intrinsic);
67+
68+
simd_for_each_lane(fx, v, ret, &|fx, _lane_ty, _res_lane_ty, lane| {
69+
fx.bcx.ins().nearest(lane)
70+
});
71+
}
72+
6573
_ => {
6674
fx.tcx
6775
.dcx()

compiler/rustc_codegen_cranelift/src/intrinsics/llvm_aarch64.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,6 @@ pub(super) fn codegen_aarch64_llvm_intrinsic_call<'tcx>(
264264
simd_reduce(fx, v, None, ret, &|fx, _ty, a, b| fx.bcx.ins().fadd(a, b));
265265
}
266266

267-
_ if intrinsic.starts_with("llvm.aarch64.neon.frintn.v") => {
268-
intrinsic_args!(fx, args => (v); intrinsic);
269-
270-
simd_for_each_lane(fx, v, ret, &|fx, _lane_ty, _res_lane_ty, lane| {
271-
fx.bcx.ins().nearest(lane)
272-
});
273-
}
274-
275267
_ if intrinsic.starts_with("llvm.aarch64.neon.smaxv.i") => {
276268
intrinsic_args!(fx, args => (v); intrinsic);
277269

library/stdarch

Submodule stdarch updated 83 files

src/tools/miri/tests/pass/shims/x86/intrinsics-x86-aes-vaes.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//@only-target: x86_64 i686
33
//@compile-flags: -C target-feature=+aes,+vaes,+avx512f
44

5-
#![feature(stdarch_x86_avx512)]
6-
75
use core::mem::transmute;
86
#[cfg(target_arch = "x86")]
97
use std::arch::x86::*;

src/tools/miri/tests/pass/shims/x86/intrinsics-x86-avx512.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//@only-target: x86_64 i686
33
//@compile-flags: -C target-feature=+avx512f,+avx512vl,+avx512bitalg,+avx512vpopcntdq
44

5-
#![feature(stdarch_x86_avx512)]
6-
75
#[cfg(target_arch = "x86")]
86
use std::arch::x86::*;
97
#[cfg(target_arch = "x86_64")]

src/tools/miri/tests/pass/shims/x86/intrinsics-x86-gfni.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// be interpreted as integers; signedness does not make sense for them, but
77
// __mXXXi happens to be defined in terms of signed integers.
88
#![allow(overflowing_literals)]
9-
#![feature(stdarch_x86_avx512)]
109

1110
#[cfg(target_arch = "x86")]
1211
use std::arch::x86::*;

src/tools/miri/tests/pass/shims/x86/intrinsics-x86-vpclmulqdq.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// be interpreted as integers; signedness does not make sense for them, but
99
// __mXXXi happens to be defined in terms of signed integers.
1010
#![allow(overflowing_literals)]
11-
#![feature(stdarch_x86_avx512)]
1211

1312
#[cfg(target_arch = "x86")]
1413
use std::arch::x86::*;

tests/ui/asm/x86_64/evex512-implicit-feature.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//@ only-x86_64
33
//@ compile-flags: --crate-type=lib -C target-cpu=skylake
44

5-
#![feature(stdarch_x86_avx512)]
6-
75
use std::arch::x86_64::*;
86

97
#[target_feature(enable = "avx512f")]

0 commit comments

Comments
 (0)