[PATCH] D33353: [OpenCL] An error shall occur if any scalar operand has greater rank than the type of the vector element

Ulrich Weigand via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 26 08:21:50 PDT 2017


uweigand added a comment.

Looks like this causes the build bot to fail on SystemZ:
http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/8741

error: 'error' diagnostics expected but not seen:

  File /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/tools/clang/test/SemaOpenCL/arithmetic-conversions.cl Line 7: scalar operand type has greater rank than the type of the vector element. ('float2' (vector of 2 'float' values) and 'double')
  File /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/tools/clang/test/SemaOpenCL/arithmetic-conversions.cl Line 9: scalar operand type has greater rank than the type of the vector element. ('double' and 'float2' (vector of 2 'float' values))

error: 'warning' diagnostics seen but not expected:

  File /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/tools/clang/test/SemaOpenCL/arithmetic-conversions.cl Line 7: double precision constant requires cl_khr_fp64, casting to single precision
  File /home/uweigand/sandbox/buildbot/clang-s390x-linux/llvm/tools/clang/test/SemaOpenCL/arithmetic-conversions.cl Line 9: double precision constant requires cl_khr_fp64, casting to single precision


https://reviews.llvm.org/D33353





More information about the cfe-commits mailing list