Add FSTOI, FDTOI (fp to integer cast) instructions.
authorBrian Gaeke <gaeke@uiuc.edu>
Thu, 14 Oct 2004 19:39:35 +0000 (19:39 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Thu, 14 Oct 2004 19:39:35 +0000 (19:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16996 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcInstrInfo.td
lib/Target/SparcV8/SparcV8InstrInfo.td

index c1b8d6e7971e19eeeccdbc806d3a5e0d90ecea28..af3c8bce9cf1495ca3a1b4132e2749e66f9ff243 100644 (file)
@@ -214,6 +214,10 @@ def WRri : F3_2<2, 0b110000, "wr">;                    // wr rs1, imm, rd
 def FITOS : F3_3<2, 0b110100, 0b011000100, "fitos">;
 def FITOD : F3_3<2, 0b110100, 0b011001000, "fitod">;
 
+// Convert Floating-point to Integer Instructions, p. 142
+def FSTOI : F3_3<2, 0b110100, 0b011010001, "fstoi">;
+def FDTOI : F3_3<2, 0b110100, 0b011010010, "fdtoi">;
+
 // Convert between Floating-point Formats Instructions, p. 143
 def FSTOD : F3_3<2, 0b110100, 0b011001001, "fstod">;
 def FDTOS : F3_3<2, 0b110100, 0b011000110, "fdtos">;
index c1b8d6e7971e19eeeccdbc806d3a5e0d90ecea28..af3c8bce9cf1495ca3a1b4132e2749e66f9ff243 100644 (file)
@@ -214,6 +214,10 @@ def WRri : F3_2<2, 0b110000, "wr">;                    // wr rs1, imm, rd
 def FITOS : F3_3<2, 0b110100, 0b011000100, "fitos">;
 def FITOD : F3_3<2, 0b110100, 0b011001000, "fitod">;
 
+// Convert Floating-point to Integer Instructions, p. 142
+def FSTOI : F3_3<2, 0b110100, 0b011010001, "fstoi">;
+def FDTOI : F3_3<2, 0b110100, 0b011010010, "fdtoi">;
+
 // Convert between Floating-point Formats Instructions, p. 143
 def FSTOD : F3_3<2, 0b110100, 0b011001001, "fstod">;
 def FDTOS : F3_3<2, 0b110100, 0b011000110, "fdtos">;