Fixes failures in test/Driver/opencl.cl.
Also fixes strict-aliasing option to only be allowed when OpenCL Version 1.0. Added testcase in test/Frontend/opencl-blocks.cl .
Differential D22170
[OpenCL] Fixes opencl.cl testcase issues and cl-strict-aliasing only allowed with cl-std=CL ashi1 on Jul 8 2016, 2:05 PM. Authored by
Details Fixes failures in test/Driver/opencl.cl. Also fixes strict-aliasing option to only be allowed when OpenCL Version 1.0. Added testcase in test/Frontend/opencl-blocks.cl .
Diff Detail
Event Timeline
Comment Actions Revised to Anastasia's comments. Removed opencl-blocks.cl, and created a generic opencl.cl inside test/Frontend folder. This change passes clang-test. Comment Actions The test cfe/trunk/test/Frontend/opencl.cl that was added here appears to Running "ninja check-clang" doesn't pick this up because config.suffixes = ['.c', '.cpp', '.m', '.mm', '.ll'] As soon as I add the suffix: config.suffixes = ['.c', '.cpp', '.m', '.mm', '.ll', '.cl'] the test fails. The failure seems to happen because of the new A solution seems to be to add "-fblocks" to the command line for these two I'll be sending a patch with this fix out for review shortly. |