[llvm-bugs] [Bug 33004] New: printf with floating point arguments using -mno-sse2 flag is crashing

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 11 07:26:42 PDT 2017


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

            Bug ID: 33004
           Summary: printf with floating point arguments using -mno-sse2
                    flag is crashing
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: ziv.izhar at intel.com
                CC: llvm-bugs at lists.llvm.org

clang crashes while compiling with the flag -mno-sse2 on linux the following
code:

#include <stdio.h> 
int main()
{
    printf("%f", 2.0);
    return 0;
}

clang -mno-sse2 test.c

output:
clang-4.0:
/export/iusers/ziv/llvm2/llvm/lib/Target/X86/X86FloatingPoint.cpp:303: unsigned
int getFPReg(const llvm::MachineOperand&): Assertion `Reg >= X86::FP0 && Reg <=
X86::FP6 && "Expected FP register!"' failed.
and backtrace

-- 
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/20170511/c488aaa3/attachment-0001.html>


More information about the llvm-bugs mailing list