diff options
| author | bors <bors@rust-lang.org> | 2024-02-27 06:42:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-27 06:42:09 +0000 |
| commit | c162ea8f5b8877f35e0bd1dc079add8686041bf1 (patch) | |
| tree | 83a428fcc70e7898dac08803f7da40925c079fac /compiler/rustc_codegen_cranelift/example | |
| parent | 7b7f8619a5ce9534d83d5594e0e93382e49b01c8 (diff) | |
| parent | c9fba889c158bd29b11827f94a495d07e4e45590 (diff) | |
| download | rust-c162ea8f5b8877f35e0bd1dc079add8686041bf1.tar.gz rust-c162ea8f5b8877f35e0bd1dc079add8686041bf1.zip | |
Auto merge of #3331 - rust-lang:rustup-2024-02-27, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/example/float-minmax-pass.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_cranelift/example/float-minmax-pass.rs b/compiler/rustc_codegen_cranelift/example/float-minmax-pass.rs index 80a2776ca1e..a71217a554b 100644 --- a/compiler/rustc_codegen_cranelift/example/float-minmax-pass.rs +++ b/compiler/rustc_codegen_cranelift/example/float-minmax-pass.rs @@ -4,17 +4,14 @@ // Test that the simd_f{min,max} intrinsics produce the correct results. -#![feature(repr_simd, platform_intrinsics)] +#![feature(repr_simd, core_intrinsics)] #![allow(non_camel_case_types)] #[repr(simd)] #[derive(Copy, Clone, PartialEq, Debug)] struct f32x4(pub f32, pub f32, pub f32, pub f32); -extern "platform-intrinsic" { - fn simd_fmin<T>(x: T, y: T) -> T; - fn simd_fmax<T>(x: T, y: T) -> T; -} +use std::intrinsics::simd::*; fn main() { let x = f32x4(1.0, 2.0, 3.0, 4.0); |
