Skip to content
Permalink
Browse files

Don't allow LLVM 3.4 on PPC, AS cast is broken.

  • Loading branch information...
kraiskil committed Jan 16, 2014
1 parent b918bfd commit 7dacf74c0581e1368ca16d5abb3f6c2c48eccbca
Showing with 4 additions and 0 deletions.
  1. +2 −0 README.powerpc
  2. +2 −0 configure.ac
@@ -14,6 +14,8 @@ LLVM lib, libpocl grows just enough that this issue shows with some OCL programs
Using the scripts to compile kernels (i.e. pass --disable-llvmapi) seems to be
more robust.

LLVM 3.4 does not work on PowerPC, as the address space cast operation
cannot be selected on the PPC backend. Use LLVM 3.3 instead.

status 2012-11-21
-----------------
@@ -895,6 +895,7 @@ case $host_cpu in
;;

powerpc64*)
test ${LLVM_VERSION:0:3} == "3.4" && AC_MSG_ERROR([LLVM 3.4 fails on PowerPC, use 3.3])
AC_MSG_NOTICE([using the ppc64 optimized kernel lib for the native device])
HOST_LD_FLAGS="$HOST_LD_FLAGS -lm"
llc_triple="powerpc64-unknown-linux-gnu"
@@ -904,6 +905,7 @@ case $host_cpu in
;;

powerpc*)
test ${LLVM_VERSION:0:3} == "3.4" && AC_MSG_ERROR([LLVM 3.4 fails on PowerPC, use 3.3])
#on all tested operating systems with PowerPC, the processor is 64bit,
#but the operating system is 32 bit.
AC_MSG_NOTICE([using the ppc64 optimized kernel lib for the native device])

0 comments on commit 7dacf74

Please sign in to comment.
You can’t perform that action at this time.