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

            Bug ID: 36301
           Summary: fatal error: error in backend: Cannot select:
                    0x56101c6eb3c0: v16i8 = X86ISD::PSHUFB 0x56101c6eac70,
                    0x56101c6eaee0t:
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: omicro...@gmail.com
                CC: llvm-bugs@lists.llvm.org

Building bearssl (https://bearssl.org/) with -O0 flag (specifically
ghash_pclmul.c) results with error from summary.

Reproducing:
> (git clone https://www.bearssl.org/git/BearSSL && cd BearSSL && clang -O0 
> -Isrc -Iinc -c -o src/hash/ghash_pclmul.o src/hash/ghash_pclmul.c)

Resulting error:
> fatal error: error in backend: Cannot select: 0x563cd9168ba0: v16i8 = 
> X86ISD::PSHUFB 0x563cd9168450, 0x563cd91686c0
>   0x563cd9168450: v16i8,ch = CopyFromReg 0x563cd90b0fc8, Register:v16i8 
> %vreg124
>     0x563cd9168318: v16i8 = Register %vreg124
>   0x563cd91686c0: v16i8,ch = CopyFromReg 0x563cd90b0fc8, Register:v16i8 
> %vreg125
>     0x563cd9168588: v16i8 = Register %vreg125
> In function: br_ghash_pclmul
> clang-5.0: error: clang frontend command failed with exit code 70 (use -v to 
> see invocation)
> clang version 5.0.1 (tags/RELEASE_501/final)
> Target: x86_64-unknown-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
> clang-5.0: 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-5.0: note: diagnostic msg:
> ********************
> 
> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
> Preprocessed source(s) and associated run script(s) are located at:
> clang-5.0: note: diagnostic msg: /tmp/ghash_pclmul-30bc48.c
> clang-5.0: note: diagnostic msg: /tmp/ghash_pclmul-30bc48.sh
> clang-5.0: note: diagnostic msg:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to