[llvm-bugs] [Bug 27708] New: Crash with length 7 SIMD vectors

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 10 18:02:23 PDT 2016


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

            Bug ID: 27708
           Summary: Crash with length 7 SIMD vectors
           Product: new-bugs
           Version: 3.8
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: schnetter at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

SIMD vectors of length 7 crash LLVM on x86-64 with AVX2.

This code
{{{
typedef long vlong7 __attribute__((__ext_vector_type__(7)));

vlong7 pvadd7(const vlong7 *restrict x, const vlong7 *restrict y) {
  return *x + *y;
}
}}}

leads to this error:
{{{
$ clang -S -march=native -Ofast llvm-simd.c
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (branches/release_38 262722)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-3.8/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/llvm-simd-97992a.c
clang: note: diagnostic msg:
/var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/llvm-simd-97992a.sh
clang: note: diagnostic msg: 

********************
}}}

I see similar problems with all vector sizes N>4 && N==2^i-1.

I also see code generations problems (wrong code, i.e. code that calculates
wrong results) for vector sizes N>4 && N%4==3.

-- 
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/20160511/d24e13e9/attachment-0001.html>


More information about the llvm-bugs mailing list