[llvm] [WebAssembly] Improve FP16 load and store generation. (PR #191274)

Brendan Dahl via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 12:12:04 PDT 2026


================
@@ -29,6 +29,26 @@ define <8 x half> @splat_v8f16(float %x) {
   ret <8 x half> %v
 }
 
+; CHECK-LABEL: load_splat_v8f16:
+; CHECK:       f32.load_f16 $push0=, 0($0)
+; CHECK-NEXT:  f16x8.splat $push1=, $pop0
----------------
brendandahl wrote:

Actually, I think this can be turned into a single ` v128.load16_splat`. Let me update...

https://github.com/llvm/llvm-project/pull/191274


More information about the llvm-commits mailing list