[llvm-branch-commits] [libc] release/23.x: [libc] Disable float16 on 32-bit x86 without SSE2 (#219675) (PR #219706)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Aug 29 10:54:18 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: llvmbot

<details>
<summary>Changes</summary>

Backport 05da143c63d333420b99eab198e1a89c97480929

Requested by: @<!-- -->windsunil

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


1 Files Affected:

- (modified) libc/include/llvm-libc-macros/float16-macros.h (+1-1) 


``````````diff
diff --git a/libc/include/llvm-libc-macros/float16-macros.h b/libc/include/llvm-libc-macros/float16-macros.h
index 528c7f016f873..6c26a6416043c 100644
--- a/libc/include/llvm-libc-macros/float16-macros.h
+++ b/libc/include/llvm-libc-macros/float16-macros.h
@@ -15,7 +15,7 @@
     (!defined(__GNUC__) || __GNUC__ >= 13 ||                                   \
      (defined(__clang__) && __clang_major__ >= 12)) &&                         \
     !defined(__arm__) && !defined(_M_ARM) && !defined(__riscv) &&              \
-    !defined(_WIN32)
+    !defined(_WIN32) && (!defined(__i386__) || defined(__SSE2__))
 #define LIBC_TYPES_HAS_FLOAT16
 
 // TODO: This would no longer be required if HdrGen let us guard function

``````````

</details>


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


More information about the llvm-branch-commits mailing list