diff --git a/crates/rustc_codegen_spirv/src/builder/libm_intrinsics.rs b/crates/rustc_codegen_spirv/src/builder/libm_intrinsics.rs index acb4e4be16..3604ce5e5d 100644 --- a/crates/rustc_codegen_spirv/src/builder/libm_intrinsics.rs +++ b/crates/rustc_codegen_spirv/src/builder/libm_intrinsics.rs @@ -167,6 +167,8 @@ pub const TABLE: &[(&str, LibmIntrinsic)] = &[ "remquof", LibmIntrinsic::Custom(LibmCustomIntrinsic::RemQuo), ), + ("rint", LibmIntrinsic::GLOp(GLOp::RoundEven)), + ("rintf", LibmIntrinsic::GLOp(GLOp::RoundEven)), ("round", LibmIntrinsic::GLOp(GLOp::Round)), ("roundf", LibmIntrinsic::GLOp(GLOp::Round)), ("scalbn", LibmIntrinsic::Custom(LibmCustomIntrinsic::Scalbn)),