[llvm] [WebAssembly] Fix lane index size for f16x8 extract_lane. (PR #108118)

Brendan Dahl via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 10 17:03:56 PDT 2024


https://github.com/brendandahl created https://github.com/llvm/llvm-project/pull/108118

None

>From b4b0248317b42d29853b42b09e88be52309ab836 Mon Sep 17 00:00:00 2001
From: Brendan Dahl <brendan.dahl at gmail.com>
Date: Tue, 10 Sep 2024 23:54:43 +0000
Subject: [PATCH] [WebAssembly] Fix lane index size for f16x8 extract_lane.

---
 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 9d17d90f530541..96002d8dec2766 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
@@ -684,7 +684,7 @@ defm EXTRACT_LANE_F16x8 :
   HALF_PRECISION_I<(outs F32:$dst), (ins V128:$vec, vec_i8imm_op:$idx),
                    (outs), (ins vec_i8imm_op:$idx),
                    [(set (f32 F32:$dst), (int_wasm_extract_lane_f16x8
-                    (v8f16 V128:$vec), (i32 LaneIdx16:$idx)))],
+                    (v8f16 V128:$vec), (i32 LaneIdx8:$idx)))],
                    "f16x8.extract_lane\t$dst, $vec, $idx",
                    "f16x8.extract_lane\t$idx", 0x121>;
 



More information about the llvm-commits mailing list