Skip to content

Commit c5acac9

Browse files
authored
Rollup merge of rust-lang#133395 - calebzulawski:simd_relaxed_fma, r=workingjubilee
Add simd_relaxed_fma intrinsic Adds compiler support for rust-lang/portable-simd#387 (comment) r? `@workingjubilee` cc `@RalfJung` is this kind of nondeterminism a problem for miri/opsem?
2 parents 1aded60 + 8f9d765 commit c5acac9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/intrinsics/simd.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
415415
});
416416
}
417417

418-
sym::simd_fma => {
418+
// FIXME: simd_relaxed_fma doesn't relax to non-fused multiply-add
419+
sym::simd_fma | sym::simd_relaxed_fma => {
419420
intrinsic_args!(fx, args => (a, b, c); intrinsic);
420421

421422
if !a.layout().ty.is_simd() {

0 commit comments

Comments
 (0)