Skip to content

Commit f48829b

Browse files
committed
attempt to minimize future conflicts
1 parent 2856d0a commit f48829b

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

tests/codegen/simd-intrinsic/simd-intrinsic-float-pow.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
//@ compile-flags: -C no-prepopulate-passes
22

33
#![crate_type = "lib"]
4-
#![feature(repr_simd, core_intrinsics, intrinsics)]
5-
#![allow(non_camel_case_types)]
6-
7-
// use std::intrinsics::simd::simd_fpow; FIXME this intrinsic is not defined
84

9-
extern "rust-intrinsic" {
10-
fn simd_fpow<T>(x: T, b: T) -> T;
11-
}
5+
#![feature(repr_simd, intrinsics)]
6+
#![allow(non_camel_case_types)]
127

138
#[repr(simd)]
149
#[derive(Copy, Clone, PartialEq, Debug)]
@@ -26,6 +21,10 @@ pub struct f32x8(pub [f32; 8]);
2621
#[derive(Copy, Clone, PartialEq, Debug)]
2722
pub struct f32x16(pub [f32; 16]);
2823

24+
extern "rust-intrinsic" {
25+
fn simd_fpow<T>(x: T, b: T) -> T;
26+
}
27+
2928
// CHECK-LABEL: @fpow_32x2
3029
#[no_mangle]
3130
pub unsafe fn fpow_32x2(a: f32x2, b: f32x2) -> f32x2 {

tests/codegen/simd-intrinsic/simd-intrinsic-float-powi.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
//@ compile-flags: -C no-prepopulate-passes
22

33
#![crate_type = "lib"]
4-
#![feature(repr_simd, core_intrinsics, intrinsics)]
5-
#![allow(non_camel_case_types)]
6-
7-
// use std::intrinsics::simd::simd_fpowi; FIXME this intrinsic is not defined
84

9-
extern "rust-intrinsic" {
10-
fn simd_fpowi<T>(x: T, b: i32) -> T;
11-
}
5+
#![feature(repr_simd, intrinsics)]
6+
#![allow(non_camel_case_types)]
127

138
#[repr(simd)]
149
#[derive(Copy, Clone, PartialEq, Debug)]
@@ -26,6 +21,10 @@ pub struct f32x8(pub [f32; 8]);
2621
#[derive(Copy, Clone, PartialEq, Debug)]
2722
pub struct f32x16(pub [f32; 16]);
2823

24+
extern "rust-intrinsic" {
25+
fn simd_fpowi<T>(x: T, b: i32) -> T;
26+
}
27+
2928
// CHECK-LABEL: @fpowi_32x2
3029
#[no_mangle]
3130
pub unsafe fn fpowi_32x2(a: f32x2, b: i32) -> f32x2 {

tests/ui/simd/intrinsic/float-math-pass.rs

-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ struct f32x4(pub [f32; 4]);
1717

1818
use std::intrinsics::simd::*;
1919

20-
// FIXME not currently exposed from std::intrinsics::simd
2120
#[rustc_intrinsic]
2221
unsafe fn simd_fpow<T>(x: T, y: T) -> T;
2322

24-
// FIXME not currently exposed from std::intrinsics::simd
2523
#[rustc_intrinsic]
2624
unsafe fn simd_fpowi<T>(x: T, y: i32) -> T;
2725

0 commit comments

Comments
 (0)