<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62084>62084</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
the clang-10 compile the __sync_add_and_fetch() fail in aarch64 bpf code
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
wjefen
</td>
</tr>
</table>
<pre>
<1>the error information is as follows:
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'xxx.bpf.c'.
4. Running pass 'BPF PreEmit Checking' on function '@func'
<2>the x86-clang-9 or arm64/ -emit-llvm->opt->llvm-dis->llc is ok
<3>__atomic_fetch_add() alse error
Is it necessary to upgrade or is there a better way
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0ks2O4yAMx5-GXKxGBNI0OeQw02mkPaw02heICDgJMwQiINv27Vek3S9p9wIYW3_bP1uEoCeL2JLjKzm-ZWKLs_Pt9QNHtNng1L0l_FwQfokzAnrvPGg7Or-IqJ0FHUAEGJ0x7hoIfyH0jdCXIie0IfyMbiT8AqvwAT2ICGgVuBFGbfARyVLk2SmECS36XfTh4cnzbbNW2wlWEQIQduo2K_e87-njq7BiQk_YCZyFxanNYIq63W75sI65JOyUP9TKf6m9vnfw7vGy6AjnGeWnttNTbPyZiLATKWky02vXep78zJ5YbnV1kEbY6dCA8wDCL1VJWAcHXHQ8GPN9ORB-cWtM124qHR5vmRC6z1-anPBL34voFi37EaOce6EUYTVhDQgTnkP4s5IvAXQEixJDEP4O0cG2Tl4oTNXoAHFGjyBgwBjRw1Xc_2rkP2emWq4a3ogM26KqC1Y17HTK5lapglNey6Y5spFjXVDKsKCqLnhd1Mcx0y2jjNOyYJQXJT_l1XBUQylKVVJRFGVFSoqL0CZPLHLnp0yHsGFbMVqXmREDmrBvJGMWr7A7CWNpQX278xu2KZCSGh1i-K0SdTTYppE8xlFQAOmWVRtMEKDvw93KBLQXVj3wPtGOQhvQFoTwcq5KGNYRpFOYbd60c4zrvt2sI6ybdJy3IZduIaxLuZ_XYfXuA2UkrNsrDoR1e0c_AgAA__-8fQxE">