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 target/36992] Very stange code for _mm_move_epi64



------- Comment #9 from ubizjak at gmail dot com  2008-08-02 13:08 -------
Hm, IA-32 Intel® Architecture Software Developer?s Manual says about movq:

Operation
MOVQ instruction when operating on MMX technology registers and memory
locations:
   DEST ← SRC;
MOVQ instruction when source and destination operands are XMM registers:
   DEST[63:0] ← SRC[63:0];
MOVQ instruction when source operand is XMM register and destination
operand is memory location:
   DEST ← SRC[63:0];
MOVQ instruction when source operand is memory location and destination
operand is XMM register:
   DEST[63:0] ← SRC;
   DEST[127:64] ← 0000000000000000H;

Please note, that the documentation doesn't say anything about clearing
destination bits [127:64] when both source and destination are in XMM register.


-- 


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


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