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

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 15:27:41 PDT 2024


Author: Brendan Dahl
Date: 2024-09-11T15:27:38-07:00
New Revision: 07a7bdc806961ef63b1fd7bdd63f27c6c803aa7c

URL: https://github.com/llvm/llvm-project/commit/07a7bdc806961ef63b1fd7bdd63f27c6c803aa7c
DIFF: https://github.com/llvm/llvm-project/commit/07a7bdc806961ef63b1fd7bdd63f27c6c803aa7c.diff

LOG: [WebAssembly] Fix lane index size for f16x8 extract_lane. (#108118)

Added: 
    

Modified: 
    llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
index 9be23dacf75013..b652ee98cef107 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