This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/14552] compiled trivial vector intrinsic code contains nearly twice as many instructions as needed


------- Additional Comments From michaelni at gmx dot at  2004-03-12 16:26 -------
sorry, no thats not the same code, it has 1 instruction more, uses a shift 
instead of a addition and writes the value to memory and reads it 
immedeatly afterwards, anyway iam not surprised that the bugreport got 
closed immedeatly 
 
gcc: 
movq    w, %mm1 
psllw   $1, %mm1     <------- 
movq    %mm1, w 
movq    w, %mm0     <------ 
movq    %mm0, dw 
 
human: 
movq w, %mm1  
paddw %mm1,%mm1  
movq %mm1, w  
movq %mm1,dw  

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14552


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]