<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylUstu2zAQ_Brpsoggy7ITHXRInQeMtkjgpL0aK2otsaFIgUs68N93LTV9oEEvBQhyH8TsLGYa157qPoSRk-V1UtzJ6XToY5MpN0jysffOOr73Lo6SPoxkN58uNs9PkjTGNfIMyIG8BIE47JWzB-cHtIrOX5C1emuNnkbvFDE7z5kaRzigNgzyH1o6akUQegzQOmKbFJcBOI6j8wH0gB2dCeY3SX59u9s97CSD_X77-fr-dv_05fHxYfe83wvMQVtqITg4ookEC6AjWcF1setnHAb09Ac-tTPwfG8BB7Du3PUE-gBaCDAo5z2pcIaep7wzPlpZv9VBO4vGnKbNnh63u68Q0HcUkmIjONG0cHIRRkPIBD0eCRCMcy_J8m7m8NyjfWE4kj_BEFWfzeW0rZdttawwxSgr-bpHmWRPmEZv_iWjMce350I0-CaLSKqZI7EEq-VVVaZ9faC8bBSVRb5YrdWqbemqwFLhur3K102zSA02ZLhOVh-SorD0ChOExMnqJv1_Brou8kLO4jIv8qossryqLpcrVcl0pRZUJmVOg5gmO-NkznepryfIJnYsTaM58K8mMuvOEk2EhWHQwUyJEx8rIyXYGLTdWV80r3jiWVstpb_VHVB591PT3ySdLCZG-WHid_wbsnRatZ72_A6wkiYV>53894</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [opencl] Clang is always defining __IMAGE_SUPPORT__ macro for SPIR target, even if device doesn't support it.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          haonanya
      </td>
    </tr>
</table>

<pre>
    https://github.com/KhronosGroup/OpenCL-CTS/blob/master/test_conformance/basic/test_preprocessors.cpp fails for device that doesn't support image:
ERROR: __IMAGE_SUPPORT__ defined to value 1 even though images aren't supported

I am not sure if it is correct to define __IMAGE_SUPPORT__ unconditionally for SPIRV target, could you please have a look?
Thanks very much.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9kttu2zAMhp_GviFqOHYO9YUvuvSAYhsSpN1uA1pibK2yZOiQIm8_2m53wIoBskWKws-PIhsrL3UXwuCT8iYp7nm1KnSxyYTt2fncOWusf3A2DuzuBjLbL1fb5yd2Gm0b3nr0gRwbgXw4CmtO1vVoBI1X0CvxHhocDc4K8t46n4lhgBMq7YHvg6SzEgShwwDSkjdJsQng4zBYF0D12NIImN8m-c3d4bA7sAfH4-PXm4e749O3_X53eD4eWeakDEkIFs6oI8EC6EyGdW1su1nHAzr6S5_kLDz_HwF7MHaMOgJ1AsUAHoR1jkQYpecsH6SPhsuXKihrUOvLVNnT_vHwHQK6lkJSbFknagkXG2HQhJ6gwzMBgrb2JSnvZ4bnDs2LhzO5C_RRdNl8nMq6lFVZYRpU0FQnq0-WOyJ0srqFrUbTjqSoX_HiZ0rFR_9y9iic_UX3B9z0WFzyWzs-6ETI0uj0_0ZG6_P7dsX9_sGPxq7yPpJnY1VeV8u0q9dCyuUalzmRLAlX8rThrxSrxXUp180y1diQ9mONSVEYeoVJgm0uNlV1kRe8Fpu8yKtlkeVVtSlXosrXjRALWiYs3PN4ZSNHZl2bunpCamLrOaiVD_53EL1XraHpSUd9jDwyru6QO2kumE6564n9Jy6jENw">