I have a .s file with the following line, produced by the compiler
vmaddfp 12,12,10,11
Following is an objdump comparison of this line assembled with with as from AltiVec.org (that gives correct results) and the newer version of as.
GNU assembler version 2.9.5-moto-1.7 (ppc-yellowdog-linux) using BFD version 2.9.5.0.22
objdump for .o file of code generated by Altivec.org compiler and assembler
2f8: 11 8c 5a ae vmaddfp v12,v12,v10,v11
The above code works
objdump for .o file of code generated by
GNU assembler version 2.11.92.0.10 (powerpc-unknown-linux-gnu) using BFD version
2.11.92.0.10 20011021
2f8: 11 8c 52 ee vmaddfp v12,v12,v10,v11
The above code does not work
The PEM says the instruction should be vmaddfp vD,vA,vC,vB
does vD=vA*vC +vD which is what I told the compiler I wanted.