[all-commits] [llvm/llvm-project] 4e47b5: [ExpandIRInsts] Fix sitofp/uitofp to float produci...

Justin Lebar via All-commits all-commits at lists.llvm.org
Fri May 29 16:13:02 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e47b560196a442c2cbdb451c0d28df128f9f1d0
      https://github.com/llvm/llvm-project/commit/4e47b560196a442c2cbdb451c0d28df128f9f1d0
  Author: Justin Lebar <justin.lebar at gmail.com>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M llvm/lib/CodeGen/ExpandIRInsts.cpp
    M llvm/test/CodeGen/AArch64/fcvt-i256.ll
    M llvm/test/CodeGen/RISCV/bitint-fp-conv-200.ll
    M llvm/test/Transforms/ExpandIRInsts/X86/expand-large-fp-convert-si129tofp.ll
    M llvm/test/Transforms/ExpandIRInsts/X86/expand-large-fp-convert-ui129tofp.ll

  Log Message:
  -----------
  [ExpandIRInsts] Fix sitofp/uitofp to float producing garbage instead of inf (#200291)

[ExpandIRInsts] Fix sitofp/uitofp producing garbage instead of inf

s/uitofp of an integer larger than the max finite floating-point value
should produce inf.  This can't happen with e.g. an int32 -> float32
conversion, but can happen for e.g. int256 -> float32.

Before this change we'd produce garbage.

Fixes #189054.

Co-Authored-By: Claude Opus 4.8 <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list