[llvm-bugs] [Bug 45004] New: problems with soft-float

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 24 01:48:49 PST 2020


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

            Bug ID: 45004
           Summary: problems with soft-float
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fb at frank-buss.de
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

When I compile this program:

#include <stdio.h>
int main(int argc, char*argv[])
{
    double x = 2.0;
    double y = 3.0;
    printf("%f\n", x * y);
    return 0;
}

with "clang -msoft-float -mno-sse -O0 test.c", it prints 0 instead of 6.

Output of clang --version:

clang --version
clang version 7.0.1-8 (tags/RELEASE_701/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

I'm trying to use soft-float without any FPU or XMM registers, as it is e.g.
possible on ARM.

-- 
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/20200224/ae9e0bfb/attachment.html>


More information about the llvm-bugs mailing list