[llvm] [llubi] Initial support for floating-point numbers (PR #188453)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 12:06:26 PDT 2026


================
@@ -0,0 +1,29 @@
+; NOTE: Assertions have been autogenerated by utils/update_llubi_test_checks.py UTC_ARGS: --version 6
+; RUN: llubi --verbose < %s 2>&1 | FileCheck %s
+
+define void @main() {
+  %ext = fpext float 2.0 to double
+  %trunc = fptrunc double 3.5 to float
+
+  %si2fp = sitofp i32 -2 to float
+  %ui2fp = uitofp i32 255 to float
----------------
dtcxzyw wrote:

test `uitofp nneg`.

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


More information about the llvm-commits mailing list