Added CVTTPS2PI.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 25 Mar 2006 01:31:59 +0000 (01:31 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 25 Mar 2006 01:31:59 +0000 (01:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27095 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrMMX.td

index 244cac69d1f11648b8d2e648a2c9821f62b34562..5bdf38f91ffaa21b987138cae9dac51fbf36616c 100644 (file)
@@ -42,3 +42,11 @@ def MOVQ64rm : I<0x6F, MRMSrcMem, (ops VR64:$dst, i64mem:$src),
 def MOVQ64mr : I<0x7F, MRMDestMem, (ops i64mem:$dst, VR64:$src),
                  "movq {$src, $dst|$dst, $src}", []>, TB,
                Requires<[HasMMX]>;
+
+// Conversion instructions
+def CVTTPS2PIrr: I<0x2C, MRMSrcReg, (ops VR64:$dst, VR128:$src),
+                   "cvttps2pi {$src, $dst|$dst, $src}", []>, TB,
+                 Requires<[HasSSE2]>;
+def CVTTPS2PIrm: I<0x2C, MRMSrcReg, (ops VR64:$dst, f64mem:$src),
+                   "cvttps2pi {$src, $dst|$dst, $src}", []>, TB,
+                 Requires<[HasMMX]>;