<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/121080>121080</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Does OpenCL support rvv Intrinsic functions?
        </td>
    </tr>

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

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

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

<pre>
    For example,I have a test_rvv_intrinsics.cl file:
```c
#include <riscv_vector.h>

void softmax_fp16()
{
    size_t vlmax = __riscv_vsetvlmax_e16m4();
    _Float16 *tmp_src_data;
    vfloat16m4_t vx_data = __riscv_vle16_v_f16m4(tmp_src_data, vlmax);
}
``` 
And I compile it with the following command:
```shell
clang --target=riscv64 -march=rv64imafdcv_zfh_zvfh_zve32f -S -c test_rvv_intrinsics.cl -o -
``` 
Clang compiles failed and report the following message:
```
clang: warning: argument unused during compilation: '-c' [-Wunused-command-line-argument]
test_rvv_intrinsics.cl:7:50: error: passing '__generic _Float16 *__private' to parameter of type 'const _Float16 *' changes address space of pointer
    7 |     vfloat16m4_t vx_data = __riscv_vle16_v_f16m4(tmp_src_data, vlmax);
      |                                                  ^~~~~~~~~~~~
test_rvv_intrinsics.cl:7:28: note: passing argument to parameter here
    7 |     vfloat16m4_t vx_data = __riscv_vle16_v_f16m4(tmp_src_data, vlmax);
      |                            ^
1 error generated.

``` 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzMVE2L8zYQ_jXKZXCQ5c8cfPBmN7BQ6KGHHoUij20VWTKS7P049LcXOd7dN0tL6aHwmpA4mplnHj3zIbxXg0FsSPFAiseDWMJoXfM-CuvVmzJDytKsPlxt99ZcrAN8FdOskTxdyMOZ1OdnGMWKICCgD9ytK1cmOGW8kv4oNfRKI8laQltS0ttHxj8sU0bqpUMg2dkpL1e-ogzWHUeSPUUP2q5WdeBtH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