[clang] [llvm] [WebAssembly] Implement all f16x8 binary instructions. (PR #93360)
Brendan Dahl via cfe-commits
cfe-commits at lists.llvm.org
Tue May 28 15:39:01 PDT 2024
================
@@ -1199,6 +1213,7 @@ def : Pat<(v2f64 (froundeven (v2f64 V128:$src))), (NEAREST_F64x2 V128:$src)>;
multiclass SIMDBinaryFP<SDPatternOperator node, string name, bits<32> baseInst> {
defm "" : SIMDBinary<F32x4, node, name, baseInst>;
defm "" : SIMDBinary<F64x2, node, name, !add(baseInst, 12)>;
+ defm "" : SIMDBinary<F16x8, node, name, !add(baseInst, 80), [HasHalfPrecision]>;
----------------
brendandahl wrote:
I ended up adding `HalfPrecisionBinary`. I was hoping there was some way I could pass a multiclass id as a parameter so i could then pass in `SIMD_I` or `HALF_PRECISION_I` as an argument, but I couldn't figure out a way to make that work.
https://github.com/llvm/llvm-project/pull/93360
More information about the cfe-commits
mailing list