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

    <tr>
        <th>Summary</th>
        <td>
            [OpenMP] BF16 chokes offload to amdgpu
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            bug
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            jdoerfert,
            jhuber6
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ye-luo
      </td>
    </tr>
</table>

<pre>
    Reproducer
```
#include <emmintrin.h>
int main()
{}
```
clang error
```
yeluo@epyc-server:~/temp$ clang++ -fopenmp --offload-arch=sm_61 fp64_err.cpp 
yeluo@epyc-server:~/temp$ clang++ -fopenmp --offload-arch=gfx906 fp64_err.cpp 
In file included from fp64_err.cpp:1:
/soft/llvm/main-patched/lib/clang/16/include/emmintrin.h:47:9: error: __bf16 is not supported on this target
typedef __bf16 __v8bf __attribute__((__vector_size__(16), __aligned__(16)));
        ^
/soft/llvm/main-patched/lib/clang/16/include/emmintrin.h:47:38: error: vector size not an integral multiple of component size
typedef __bf16 __v8bf __attribute__((__vector_size__(16), __aligned__(16)));
                                     ^               ~~
/soft/llvm/main-patched/lib/clang/16/include/emmintrin.h:48:9: error: __bf16 is not supported on this target
typedef __bf16 __m128bh __attribute__((__vector_size__(16), __aligned__(16)));
        ^
/soft/llvm/main-patched/lib/clang/16/include/emmintrin.h:48:40: error: vector size not an integral multiple of component size
typedef __bf16 __m128bh __attribute__((__vector_size__(16), __aligned__(16)));
```
Caused by [e0fb01e97b6b7d2fe66b17b36eeb98aa78c6e3bb](https://reviews.llvm.org/rGe0fb01e97b6b7d2fe66b17b36eeb98aa78c6e3bb) 
The issue was worked around in HIP. https://reviews.llvm.org/D138651
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVVU2PmzAQ_TVwsYiwHQwcOGw2m3YPVauqd2TDENgFjGyTbfrrO05ot1mt2h42qoqMPwYz782bka10fSw-w2R0PVdggngbxDeBiJd2XjLejVU_10ACfgvD0I3OdOOqDfjdeQcayCC7MWBZwPLlr3QTpNtXHVa9HPcEjNGvAx6hn3WwjmE6VpEFc0BiHB3eBWznYJgCtiYnHwHbYCNRoycYh4lEkW6aXss6kqZCels7lIKSZhLrEuFW1TSRt4bYN1_zWLyGcT-SpuuBLOLVpDF6uNiIkNTDLjLvrG4cDn1_GHDwikaTdFULtbd2CvuF1I4K7BbPOLvIys06xS7HdxEZJ2WpGipIZ8moHbHzNGnjkJMeiWvR6qTZgzszcccJamh-_FOWh0z5lXSIoGYHZXnKdIZfoHLalLb7djZ6WnnAbv3uvtuPUP9qPjW-OaOQ5QmSu-sIwLMLBc5Uiad60kCOmBkHeyN7Msy96ybMlW5IpYdJj4Al7bf-C0V--6BcLy1YtekVNMzetogGyjLV_l9l5CVYx9croytp8uI8vZWzxSypI4q0gbhRMYU8VUKlNWtACEVTxQWAyjMp06wSwJUKki16b52brD-i2A6bgUMHT3blhV1p4_Uz7_7aIcuXg_FLi4eitTOQJ2nJkzaPyE4aPY81akne339akT8CbynPREJDKKgQecpzmmRhXfA657kMXed6KDDcj3hsf_iEwZAN5ppUrX4ES5YznDhN5FDvpzmcTV9cYu47185qhXl8LiU_RHhZPmBufN34ICxOkpwlPGyLJpcJqDhJmirJK8g5o0kdr4XksKYVVGEvFfTWEwsYUzMGwpBb2BUsZoxSllPBkiRbxZBRvJ2U5LhMaeavKqzj_qcCoSlOZNCHxY99Z92zPKG01lcILEAPtQbTgHEeDivImzA2MGLBl7NrtSmOEOG1GJ7CKk4xfQeMCHik">