[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaInstrInfo.td
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed Jan 26 15:57:05 PST 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaInstrInfo.td updated: 1.5 -> 1.6
---
Log message:
added instructions for fp to int to fp moves
---
Diffs of the changes: (+6 -5)
AlphaInstrInfo.td | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaInstrInfo.td
diff -u llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.5 llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.6
--- llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.5 Wed Jan 26 15:54:09 2005
+++ llvm/lib/Target/Alpha/AlphaInstrInfo.td Wed Jan 26 17:56:48 2005
@@ -313,6 +313,12 @@
def SQRTS : FPForm<0x14, 0x08B, (ops FPRC:$RC, FPRC:$RA, FPRC:$RB), "sqrts $RA,$RB,$RC">; //Square root S_floating
def SQRTT : FPForm<0x14, 0x0AB, (ops FPRC:$RC, FPRC:$RA, FPRC:$RB), "sqrtt $RA,$RB,$RC">; //Square root T_floating
+//INT reg to FP reg and back again
+def FTOIS : FPForm<0x1C, 0x078, (ops FPRC:$RC, GPRC:$RA), "ftois $RA,$RC">; //Floating to integer move, S_floating
+def FTOIT : FPForm<0x1C, 0x070, (ops FPRC:$RC, GPRC:$RA), "ftoit $RA,$RC">; //Floating to integer move, T_floating
+def ITOFS : FPForm<0x14, 0x004, (ops FPRC:$RC, GPRC:$RA), "itofs $RA,$RC">; //Integer to floating move, S_floating
+def ITOFT : FPForm<0x14, 0x024, (ops FPRC:$RC, GPRC:$RA), "itoft $RA,$RC">; //Integer to floating move, T_floating
+
//S_floating : IEEE Single
//T_floating : IEEE Double
@@ -360,10 +366,5 @@
//FCMOVLT F-P 17.02C FCMOVE if < zero
//FCMOVNE F-P 17.02B FCMOVE if != zero
-//FTOIS F-P 1C.78 Floating to integer move, S_floating
-//FTOIT F-P 1C.70 Floating to integer move, T_floating
-//ITOFS F-P 14.004 Integer to floating move, S_floating
-//ITOFT F-P 14.024 Integer to floating move, T_floating
-
//MF_FPCR F-P 17.025 Move from FPCR
//MT_FPCR F-P 17.024 Move to FPCR
More information about the llvm-commits
mailing list