1 // compile-flags: -C no-prepopulate-passes
5 #![feature(repr_simd, platform_intrinsics)]
6 #![allow(non_camel_case_types)]
9 #[derive(Copy, Clone, PartialEq, Debug)]
10 pub struct f32x4(pub f32, pub f32, pub f32, pub f32);
12 extern "platform-intrinsic" {
13 fn simd_fmin<T>(x: T, y: T) -> T;
14 fn simd_fmax<T>(x: T, y: T) -> T;
19 pub unsafe fn fmin(a: f32x4, b: f32x4) -> f32x4 {
20 // CHECK: call <4 x float> @llvm.minnum.v4f32
26 pub unsafe fn fmax(a: f32x4, b: f32x4) -> f32x4 {
27 // CHECK: call <4 x float> @llvm.maxnum.v4f32