use llvm.nearbyint.v4f32 for rounding

see https://godbolt.org/z/Wx1KWezbe to see that these in fact generate equivalent assembly
This commit is contained in:
Folkert de Vries 2025-02-13 22:58:20 +01:00 committed by Amanieu d'Antras
parent f6d53388e6
commit ac92d7d006

View file

@ -382,7 +382,7 @@ unsafe extern "C" {
#[link_name = "llvm.ppc.altivec.vrlw"]
fn vrlw(a: vector_signed_int, c: vector_unsigned_int) -> vector_signed_int;
#[link_name = "llvm.ppc.altivec.vrfin"]
#[link_name = "llvm.nearbyint.v4f32"]
fn vrfin(a: vector_float) -> vector_float;
}