Skip to content

[WebAssembly] Fix lane index size for f16x8 extract_lane. #108118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

brendandahl
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Sep 11, 2024

@llvm/pr-subscribers-backend-webassembly

Author: Brendan Dahl (brendandahl)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/108118.diff

1 Files Affected:

  • (modified) llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td (+1-1)
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>;
 

@brendandahl brendandahl merged commit 07a7bdc into llvm:main Sep 11, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants