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: unassignedclangb...@nondot.org
          Reporter: f...@frank-buss.de
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to