Skip to content

Commit

Permalink
Rollup merge of rust-lang#133395 - calebzulawski:simd_relaxed_fma, r=…
Browse files Browse the repository at this point in the history
…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?
  • Loading branch information
matthiaskrgr authored Dec 3, 2024
2 parents 1aded60 + 8f9d765 commit c5acac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/intrinsics/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
});
}

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

if !a.layout().ty.is_simd() {
Expand Down

0 comments on commit c5acac9

Please sign in to comment.