Skip to content

Commit aff5ae0

Browse files
committed
Fix ordering for FMA and change FMS to FNMA (fused negative multiply add)
For #27.
1 parent d4f766c commit aff5ae0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

proposals/relaxed-simd/Overview.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,19 +163,19 @@ def relaxed_i32x4_trunc_f64x2_zero_u(a : f64x2) -> i32x4:
163163
result[i] = r
164164
```
165165

166-
### Relaxed fused multiply-add and fused multiply-subtract
166+
### Relaxed fused multiply-add and fused negative multiply-add
167167

168168
- `relaxed f32x4.fma`
169-
- `relaxed f32x4.fms`
169+
- `relaxed f32x4.fnma`
170170
- `relaxed f64x2.fma`
171-
- `relaxed f64x2.fms`
171+
- `relaxed f64x2.fnma`
172172

173-
All the instructions take 3 operands, `a`, `b`, `c`, perform `a + (b * c)` or `a - (b * c)`:
173+
All the instructions take 3 operands, `a`, `b`, `c`, perform `a * b + c` or `-(a * b) + c`:
174174

175-
- `relaxed f32x4.fma(a, b, c) = a + (b * c)`
176-
- `relaxed f32x4.fms(a, b, c) = a - (b * c)`
177-
- `relaxed f64x2.fma(a, b, c) = a + (b * c)`
178-
- `relaxed f64x2.fms(a, b, c) = a - (b * c)`
175+
- `relaxed f32x4.fma(a, b, c) = a * b + c`
176+
- `relaxed f32x4.fnma(a, b, c) = -(a * b) + c`
177+
- `relaxed f64x2.fma(a, b, c) = a * b + c`
178+
- `relaxed f64x2.fnma(a, b, c) = -(a * b) + c`
179179

180180
where:
181181

0 commit comments

Comments
 (0)