mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
powerpc: use simd_ceil and simd_floor
This commit is contained in:
committed by
Amanieu d'Antras
parent
d3880872ea
commit
d0bc126ec5
@@ -234,9 +234,6 @@ fn vmsumshm(
|
||||
#[link_name = "llvm.ppc.altivec.vavguw"]
|
||||
fn vavguw(a: vector_unsigned_int, b: vector_unsigned_int) -> vector_unsigned_int;
|
||||
|
||||
#[link_name = "llvm.ceil.v4f32"]
|
||||
fn vceil(a: vector_float) -> vector_float;
|
||||
|
||||
#[link_name = "llvm.ppc.altivec.vcmpbfp"]
|
||||
fn vcmpbfp(a: vector_float, b: vector_float) -> vector_signed_int;
|
||||
|
||||
@@ -274,9 +271,6 @@ fn vmsumshm(
|
||||
#[link_name = "llvm.ppc.altivec.vexptefp"]
|
||||
fn vexptefp(a: vector_float) -> vector_float;
|
||||
|
||||
#[link_name = "llvm.floor.v4f32"]
|
||||
fn vfloor(a: vector_float) -> vector_float;
|
||||
|
||||
#[link_name = "llvm.ppc.altivec.vcmpequb.p"]
|
||||
fn vcmpequb_p(cr: i32, a: vector_unsigned_char, b: vector_unsigned_char) -> i32;
|
||||
#[link_name = "llvm.ppc.altivec.vcmpequh.p"]
|
||||
@@ -768,7 +762,7 @@ unsafe fn vec_xst(self, a: isize, b: Self::Out) {
|
||||
impl_vec_xst! { vec_xst_u32 stxvd2x / stxv u32 }
|
||||
impl_vec_xst! { vec_xst_f32 stxvd2x / stxv f32 }
|
||||
|
||||
test_impl! { vec_floor(a: vector_float) -> vector_float [ vfloor, vrfim / xvrspim ] }
|
||||
test_impl! { vec_floor(a: vector_float) -> vector_float [ simd_floor, vrfim / xvrspim ] }
|
||||
|
||||
test_impl! { vec_vexptefp(a: vector_float) -> vector_float [ vexptefp, vexptefp ] }
|
||||
|
||||
@@ -1302,7 +1296,7 @@ unsafe fn vec_any_ne(self, b: vector_float) -> Self::Result {
|
||||
}
|
||||
}
|
||||
|
||||
test_impl! { vec_vceil(a: vector_float) -> vector_float [vceil, vrfip / xvrspip ] }
|
||||
test_impl! { vec_vceil(a: vector_float) -> vector_float [simd_ceil, vrfip / xvrspip ] }
|
||||
|
||||
test_impl! { vec_vavgsb(a: vector_signed_char, b: vector_signed_char) -> vector_signed_char [ vavgsb, vavgsb ] }
|
||||
test_impl! { vec_vavgsh(a: vector_signed_short, b: vector_signed_short) -> vector_signed_short [ vavgsh, vavgsh ] }
|
||||
|
||||
Reference in New Issue
Block a user