fix use of platform_intrinsics in tests
This commit is contained in:
parent
9bb1109478
commit
08e4eafa49
1 changed files with 2 additions and 5 deletions
|
@ -4,17 +4,14 @@
|
||||||
|
|
||||||
// Test that the simd_f{min,max} intrinsics produce the correct results.
|
// Test that the simd_f{min,max} intrinsics produce the correct results.
|
||||||
|
|
||||||
#![feature(repr_simd, intrinsics)]
|
#![feature(repr_simd, core_intrinsics)]
|
||||||
#![allow(non_camel_case_types)]
|
#![allow(non_camel_case_types)]
|
||||||
|
|
||||||
#[repr(simd)]
|
#[repr(simd)]
|
||||||
#[derive(Copy, Clone, PartialEq, Debug)]
|
#[derive(Copy, Clone, PartialEq, Debug)]
|
||||||
struct f32x4(pub f32, pub f32, pub f32, pub f32);
|
struct f32x4(pub f32, pub f32, pub f32, pub f32);
|
||||||
|
|
||||||
extern "intrinsic" {
|
use std::intrinsics::simd::*;
|
||||||
fn simd_fmin<T>(x: T, y: T) -> T;
|
|
||||||
fn simd_fmax<T>(x: T, y: T) -> T;
|
|
||||||
}
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let x = f32x4(1.0, 2.0, 3.0, 4.0);
|
let x = f32x4(1.0, 2.0, 3.0, 4.0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue