@@ -1480,23 +1480,24 @@ defm "" : RelaxedConvert<I32x4, F64x2, int_wasm_relaxed_trunc_unsigned_zero,
14801480// Relaxed (Negative) Multiply-Add (madd/nmadd)
14811481//===----------------------------------------------------------------------===//
14821482
1483- multiclass SIMDMADD<Vec vec, bits<32> simdopA, bits<32> simdopS> {
1483+ multiclass SIMDMADD<Vec vec, bits<32> simdopA, bits<32> simdopS, list<Predicate> reqs > {
14841484 defm MADD_#vec :
1485- RELAXED_I <(outs V128:$dst), (ins V128:$a, V128:$b, V128:$c), (outs), (ins),
1486- [(set (vec.vt V128:$dst), (int_wasm_relaxed_madd
1487- (vec.vt V128:$a), (vec.vt V128:$b), (vec.vt V128:$c)))],
1488- vec.prefix#".relaxed_madd\t$dst, $a, $b, $c",
1489- vec.prefix#".relaxed_madd", simdopA>;
1485+ SIMD_I <(outs V128:$dst), (ins V128:$a, V128:$b, V128:$c), (outs), (ins),
1486+ [(set (vec.vt V128:$dst), (int_wasm_relaxed_madd
1487+ (vec.vt V128:$a), (vec.vt V128:$b), (vec.vt V128:$c)))],
1488+ vec.prefix#".relaxed_madd\t$dst, $a, $b, $c",
1489+ vec.prefix#".relaxed_madd", simdopA, reqs >;
14901490 defm NMADD_#vec :
1491- RELAXED_I <(outs V128:$dst), (ins V128:$a, V128:$b, V128:$c), (outs), (ins),
1492- [(set (vec.vt V128:$dst), (int_wasm_relaxed_nmadd
1493- (vec.vt V128:$a), (vec.vt V128:$b), (vec.vt V128:$c)))],
1494- vec.prefix#".relaxed_nmadd\t$dst, $a, $b, $c",
1495- vec.prefix#".relaxed_nmadd", simdopS>;
1491+ SIMD_I <(outs V128:$dst), (ins V128:$a, V128:$b, V128:$c), (outs), (ins),
1492+ [(set (vec.vt V128:$dst), (int_wasm_relaxed_nmadd
1493+ (vec.vt V128:$a), (vec.vt V128:$b), (vec.vt V128:$c)))],
1494+ vec.prefix#".relaxed_nmadd\t$dst, $a, $b, $c",
1495+ vec.prefix#".relaxed_nmadd", simdopS, reqs >;
14961496}
14971497
1498- defm "" : SIMDMADD<F32x4, 0x105, 0x106>;
1499- defm "" : SIMDMADD<F64x2, 0x107, 0x108>;
1498+ defm "" : SIMDMADD<F32x4, 0x105, 0x106, [HasRelaxedSIMD]>;
1499+ defm "" : SIMDMADD<F64x2, 0x107, 0x108, [HasRelaxedSIMD]>;
1500+ defm "" : SIMDMADD<F16x8, 0x146, 0x147, [HasHalfPrecision]>;
15001501
15011502//===----------------------------------------------------------------------===//
15021503// Laneselect
0 commit comments