bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

as for altivec-ppc doing vmaddfp error


From: Ken
Subject: as for altivec-ppc doing vmaddfp error
Date: Fri, 2 Nov 2001 13:56:00 -0800

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.

It appears the newer as reverses vC and vB.
ken

reply via email to

[Prev in Thread] Current Thread [Next in Thread]