Skip to content

ldexp intrinsic not understood #1262

@arsenm

Description

@arsenm

https://alive2.llvm.org/ce/z/6Rw7uw

----------------------------------------
declare float @llvm.ldexp.f32.i32(float, i32) nofree willreturn memory(none)

define float @src(float %x, i32 %y) {
#0:
  %z = call float @llvm.ldexp.f32.i32(float %x, i32 %y) nofree willreturn memory(none)
  ret float %z
}
=>
declare float @llvm.ldexp.f32.i32(float, i32) nofree willreturn memory(none)

define float @tgt(float %x, i32 %y) {
#0:
  %z = call float @llvm.ldexp.f32.i32(float %x, i32 0) nofree willreturn memory(none)
  ret float %z
}
ERROR: Couldn't prove the correctness of the transformation
Alive2 approximated the semantics of the programs and therefore we
cannot conclude whether the bug found is valid or not.

Approximations done:
 - Unknown libcall: @llvm.ldexp.f32.i32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions