[llvm-bugs] [Bug 42443] New: Get a wrong result when passing a float 32 value to a external function with variable parameter(just like printf)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 28 22:41:24 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42443

            Bug ID: 42443
           Summary: Get a wrong result when passing a float 32 value to a
                    external function with variable parameter(just like
                    printf)
           Product: compiler-rt
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: builtins
          Assignee: unassignedbugs at nondot.org
          Reporter: wangyongfeng5 at gmail.com
                CC: llvm-bugs at lists.llvm.org

When I pass a float 32 value to printf using CallInst, printf will receive
(output) 0.000000. This will not happen with float 64 and other types.

-- 
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/20190629/71afa269/attachment-0001.html>


More information about the llvm-bugs mailing list