[llvm] [WebAssembly] Fix f16x8.demote_f32x4_zero opcode. (PR #194722)
Brendan Dahl via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 13:54:33 PDT 2026
https://github.com/brendandahl created https://github.com/llvm/llvm-project/pull/194722
Use the correct opcode from:
https://github.com/WebAssembly/half-precision/blob/f267a3d54432e5723dcc13ad4530c3581a0cc4b3/proposals/half-precision/Overview.md
>From 49fbf9d15cd64d5b87d1d9ea719ca9644ab721e6 Mon Sep 17 00:00:00 2001
From: Brendan Dahl <brendan.dahl at gmail.com>
Date: Tue, 28 Apr 2026 20:48:54 +0000
Subject: [PATCH] [WebAssembly] Fix f16x8.demote_f32x4_zero opcode.
Use the correct opcode from:
https://github.com/WebAssembly/half-precision/blob/f267a3d54432e5723dcc13ad4530c3581a0cc4b3/proposals/half-precision/Overview.md
---
llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
index 38487d6ac7e0f..b6e69d617cd07 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
@@ -1654,7 +1654,7 @@ def demote_t : SDTypeProfile<1, 1, [SDTCisVec<0>, SDTCisVec<1>]>;
def demote_zero : SDNode<"WebAssemblyISD::DEMOTE_ZERO", demote_t>;
defm "" : SIMDConvert<F32x4, F64x2, demote_zero,
"demote_f64x2_zero", 0x5e>;
-defm "" : HalfPrecisionConvert<F16x8, F32x4, demote_zero, "demote_f32x4_zero", 0x14c>;
+defm "" : HalfPrecisionConvert<F16x8, F32x4, demote_zero, "demote_f32x4_zero", 0x149>;
def promote_t : SDTypeProfile<1, 1, [SDTCisVec<0>, SDTCisVec<1>]>;
def promote_low : SDNode<"WebAssemblyISD::PROMOTE_LOW", promote_t>;
More information about the llvm-commits
mailing list