[llvm-commits] CVS: llvm/lib/Target/IA64/IA64InstrInfo.td

Duraid Madina duraid at octopus.com.au
Wed Dec 21 22:38:49 PST 2005



Changes in directory llvm/lib/Target/IA64:

IA64InstrInfo.td updated: 1.31 -> 1.32
---
Log message:

we need to emit the getf.d instruction in lowering, so add it
to IA64ISD




---
Diffs of the changes:  (+11 -2)

 IA64InstrInfo.td |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/IA64/IA64InstrInfo.td
diff -u llvm/lib/Target/IA64/IA64InstrInfo.td:1.31 llvm/lib/Target/IA64/IA64InstrInfo.td:1.32
--- llvm/lib/Target/IA64/IA64InstrInfo.td:1.31	Wed Dec 21 21:56:03 2005
+++ llvm/lib/Target/IA64/IA64InstrInfo.td	Thu Dec 22 00:38:38 2005
@@ -15,6 +15,14 @@
 
 include "IA64InstrFormats.td"
 
+//===----------------------------------------------------------------------===//
+// IA-64 specific DAG Nodes.
+//
+
+def IA64getfd : SDNode<"IA64ISD::GETFD", SDTFPToIntOp, []>;
+
+//===---------
+
 def u2imm : Operand<i8>;
 def u6imm : Operand<i8>;
 def s8imm : Operand<i8> {
@@ -614,8 +622,9 @@
 def FNORMD : AForm<0x03, 0x0b, (ops FP:$dst, FP:$src),
   "fnorm.d $dst = $src;;">;
 
-def GETFD : AForm<0x03, 0x0b, (ops GR:$dst, FP:$src),
-  "getf.d $dst = $src;;">;
+def GETFD : AForm_DAG<0x03, 0x0b, (ops GR:$dst, FP:$src),
+  "getf.d $dst = $src;;",
+  [(set GR:$dst, (IA64getfd FP:$src))]>;
 def SETFD : AForm<0x03, 0x0b, (ops FP:$dst, GR:$src),
   "setf.d $dst = $src;;">;
 






More information about the llvm-commits mailing list