Skip to content

[FP16] Removed "relaxed" from madd and nmadd.#8411

Open
brendandahl wants to merge 3 commits intoWebAssembly:mainfrom
brendandahl:remove-relaxed-fp16
Open

[FP16] Removed "relaxed" from madd and nmadd.#8411
brendandahl wants to merge 3 commits intoWebAssembly:mainfrom
brendandahl:remove-relaxed-fp16

Conversation

@brendandahl
Copy link
Collaborator

With FP16 there won't be any relaxed instructions because the hardware should always be able to promote the type to F32 so there won't be a double rounding issue.

@brendandahl brendandahl requested review from kripken and tlively March 4, 2026 00:05
With FP16 there won't be any relaxed instructions because the hardware
should always be able to promote the type to F32 so there won't be a
double rounding issue.
@brendandahl brendandahl force-pushed the remove-relaxed-fp16 branch from eb46f4a to 42264c2 Compare March 4, 2026 00:19
@brendandahl brendandahl requested a review from tlively March 6, 2026 16:58
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % final comment.

Comment on lines 1515 to 1516
required |= FeatureSet::RelaxedSIMD;
[[fallthrough]];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want relaxed SIMD instructions to require fp16, so let's just be explicit and get rid of all the fallthroughs here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants