[llvm-bugs] [Bug 48642] New: Crash with LTO and __attribute__((cpu_dispatch(generic, skylake)))

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 31 12:35:09 PST 2020


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

            Bug ID: 48642
           Summary: Crash with LTO and
                    __attribute__((cpu_dispatch(generic, skylake)))
           Product: new-bugs
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: jeromerobert at gmx.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 24332
  --> https://bugs.llvm.org/attachment.cgi?id=24332&action=edit
Stack dump

source code:

__attribute__((cpu_dispatch(generic, skylake)))
void func(double * restrict x, double* restrict y, double* restrict z);

__attribute__((cpu_specific(generic, skylake)))
void func(double * restrict x, double* restrict y, double* restrict z) {
  for(int i = 0; i < 8; i++) {
    z[i] += x[i] + y[i];
  }
}

command line:

clang -flto bug_cpu_dispatch_lto.c

See stack dump attached.

-- 
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/20201231/8d8e8ca1/attachment.html>


More information about the llvm-bugs mailing list