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 c++/15820] GCC emits MOVAPS to load unaligned data in case when -O2 is invoked


------- Additional Comments From dimfair at yahoo dot com  2004-06-04 14:26 -------
(In reply to comment #2) 
> To be more explicit: if you pass this function an unaligned pointer,  
> how can you expect the compiler to do something about it?  
>   
> W.  
 
test function is a (specially) simplified inversion of 6x6 matrix function 
which get src aligned parameter always.  
I'm sure this is a compiler's bug, because gcc uses MOVAPS for loading of __m64 
parameter of _mm_loadh_pi which _can be unaligned_ according to Intel's specs 
(BTW, I found this bug when I ported healthy program from Intel's compiler to 
GCC). 
 
NOTE: test function is meaningless (but correct!) because I tried to make the 
shortest testcase (try to comment ANY line and bug disappeared). 
 
Dmitry (it's my name :)) ) 
 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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


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