[llvm] [WebAssembly] Fix lane index size for f16x8 extract_lane. (PR #108118)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 17:04:28 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-webassembly
Author: Brendan Dahl (brendandahl)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/108118.diff
1 Files Affected:
- (modified) llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td (+1-1)
``````````diff
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>;
``````````
</details>
https://github.com/llvm/llvm-project/pull/108118
More information about the llvm-commits
mailing list