[Libre-soc-bugs] [Bug 1128] Find a way to check that the SFFS binaries have no VSX instructions.

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Aug 4 16:55:53 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1128

--- Comment #8 from Sadoon Albader <sadoon at albader.co> ---
Created attachment 198
  --> https://bugs.libre-soc.org/attachment.cgi?id=198&action=edit
Incomplete list of AltiVec/VSX instructions

This list is based on
https://git.libre-soc.org/?p=binutils-gdb.git&a=search&h=85f4cf41a852b5983ca436615a019315f6dc7301&st=grep&s=PPCVEC%7CPPCVSX&sr=1
(Thanks Jacob!)

we can use it to check our objdump'd binaries for any Vector instructions,
example of default compiled hello.deb on Debian 12:

fgrep -of insns.txt hello.asm | sort | uniq -c | awk '{print $2 " " $1}'

lvx 1
lxvd2x 45
mfvrd 1
stvx 1
stxvd2x 49
vcmpequb 12
vgbbd 1
vsldoi 1
vspltisw 5
xxlorc 4
xxswapd 4

Example of our custom CFLAGS (see bug 999):

fgrep -of insns.txt hello.final.asm | sort | uniq -c | awk '{print $2 " " $1}'

*no output*

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list