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

            Bug ID: 43072
           Summary: LLVM ERROR: Cannot select: intrinsic
                    %llvm.ppc.altivec.dss
           Product: clang
           Version: 8.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangb...@nondot.org
          Reporter: elvis.dow...@gmail.com
                CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
                    richard-l...@metafoo.co.uk

I tried to compile SDL2 library from sources on an IBM Power9 system, using
clang-8.0.1 built from the 8.0 branch.

The options passed for building the library are as follows:
```bash
cmake -DCMAKE_BUILD_TYPE=Debug -DVIDEO_MIR=OFF -DVIDEO_KMSDRM=OFF
-DSDL_STATIC=ON -DEXTRA_CFLAGS='-gdwarf-4 -fpic -mabi=altivec -mvsx -maltivec
-mpower9-vector' -DEXTRA_LDFLAGS='-fpic' ${ARCH_OPTIONS} ../$SDL_DIR
e
```

I went through the debugging process and narrowed it down to a code generator
bug.

When I run the command
```
llc ./build-SDL-gui-backend-Debug/SDL_blit_N.bc
LLVM ERROR: Cannot select: intrinsic %llvm.ppc.altivec.dss

llc ./build-SDL-gui-backend-Debug/SDL_blit_N.bc -relocation-model=pic
LLVM ERROR: Cannot select: intrinsic %llvm.ppc.altivec.dss

llc ./build-SDL-gui-backend-Debug/SDL_blit_N.bc -relocation-model=static
LLVM ERROR: Cannot select: intrinsic %llvm.ppc.altivec.dss
```

Here is the output of the build process:

```bash
13 warnings generated.
fatal error: error in backend: Cannot select: intrinsic %llvm.ppc.altivec.dss
clang-8: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 8.0.1 
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-8: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-8: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-8: note: diagnostic msg: /tmp/SDL_blit_N-ca38a1.c
clang-8: note: diagnostic msg: /tmp/SDL_blit_N-ca38a1.sh
clang-8: 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
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to