[llvm-bugs] [Bug 51806] New: llvm::SelectionDAGISel crash when using __builtin_copysign() with -march=armv8-a+nosimd

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 9 05:46:48 PDT 2021


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

            Bug ID: 51806
           Summary: llvm::SelectionDAGISel crash when using
                    __builtin_copysign() with -march=armv8-a+nosimd
           Product: new-bugs
           Version: 12.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: luc.vanoostenryck at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

See https://gcc.godbolt.org/z/917z95e7W

$ cat crash.c
double crash(double a, double b)
{
        return __builtin_copysign(a, b);
}

$ clang -O2 -march=armv8-a+nosimd --target=arm64 -S crash.c -o /dev/null
fatal error: error in backend: Cannot select: 0x7fae361bb4e8: v2i64 =
AArch64ISD::BIT 0x7fae361bb210, 0x7fae361bb278, 0x7fae361bb480
...


Others FP related builtins doesn't seem to have problems with nosimd.

-- 
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/20210909/2a58275d/attachment-0001.html>


More information about the llvm-bugs mailing list