I have implemented support for BPF assembly in the smtgcc GCC translation validator:
https://github.com/kristerw/smtgcc
It has already found multiple bugs in the GCC BPF backend. I have reported three so far:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122139
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122140
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122141