1 //====- X86InstrMMX.td - Describe the X86 Instruction Set -------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the Evan Cheng and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file describes the X86 MMX instruction set, defining the instructions,
11 // and properties of the instructions which are needed for code generation,
12 // machine code emission, and analysis.
14 //===----------------------------------------------------------------------===//
16 // Some 'special' instructions
17 def IMPLICIT_DEF_VR64 : I<0, Pseudo, (ops VR64:$dst),
19 [(set VR64:$dst, (v8i8 (undef)))]>,
22 def : Pat<(v4i16 (undef)), (IMPLICIT_DEF_VR64)>, Requires<[HasMMX]>;
23 def : Pat<(v2i32 (undef)), (IMPLICIT_DEF_VR64)>, Requires<[HasMMX]>;
26 def MOVD64rr : I<0x6E, MRMSrcReg, (ops VR64:$dst, R32:$src),
27 "movd {$src, $dst|$dst, $src}", []>, TB,
29 def MOVD64rm : I<0x6E, MRMSrcMem, (ops VR64:$dst, i32mem:$src),
30 "movd {$src, $dst|$dst, $src}", []>, TB,
32 def MOVD64mr : I<0x7E, MRMDestMem, (ops i32mem:$dst, VR64:$src),
33 "movd {$src, $dst|$dst, $src}", []>, TB,
36 def MOVQ64rr : I<0x6F, MRMSrcReg, (ops VR64:$dst, VR64:$src),
37 "movq {$src, $dst|$dst, $src}", []>, TB,
39 def MOVQ64rm : I<0x6F, MRMSrcMem, (ops VR64:$dst, i64mem:$src),
40 "movq {$src, $dst|$dst, $src}", []>, TB,
42 def MOVQ64mr : I<0x7F, MRMDestMem, (ops i64mem:$dst, VR64:$src),
43 "movq {$src, $dst|$dst, $src}", []>, TB,