[LLVMbugs] [Bug 21130] New: gvn badly replaces a call to fptosi

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 2 05:07:46 PDT 2014


            Bug ID: 21130
           Summary: gvn badly replaces a call to fptosi
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: calixte.denizet at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

; ModuleID = 'plop.ll'
target datalayout = "e-i64:64-f80:128-n8:16:32:64-S128"

define i8 @jit_main() {
  %0 = fptosi double 1.560000e+02 to i8
  ret i8 %0

opt -S --gvn plop.ll shows:
define i8 @jit_main() {
  ret i8 127

it should be ret i8 -100.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141002/a4f055e9/attachment.html>

More information about the llvm-bugs mailing list