[clang] [WebAssembly] Change F16x8 extract lane to require constant integer. (PR #108116)
Brendan Dahl via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 11 09:47:22 PDT 2024
================
@@ -1888,18 +1888,15 @@ static __inline__ v128_t __FP16_FN_ATTRS wasm_f16x8_splat(float __a) {
return (v128_t)__builtin_wasm_splat_f16x8(__a);
}
-static __inline__ float __FP16_FN_ATTRS wasm_f16x8_extract_lane(v128_t __a,
- int __i)
- __REQUIRE_CONSTANT(__i) {
----------------
brendandahl wrote:
It does require a constant in C code, but in a no-opt build it is not a constant in LLVM IR.
https://github.com/llvm/llvm-project/pull/108116
More information about the cfe-commits
mailing list